You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2002/08/30 17:53:44 UTC

cvs commit: xml-fop/src/org/apache/fop/datatypes Inherit.java

pbwest      2002/08/30 08:53:44

  Modified:    src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
                        Inherit.java
  Log:
  Added inherited percentage reference and accessors
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +27 -3     xml-fop/src/org/apache/fop/datatypes/Attic/Inherit.java
  
  Index: Inherit.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/Inherit.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- Inherit.java	27 Aug 2002 15:14:48 -0000	1.1.2.3
  +++ Inherit.java	30 Aug 2002 15:53:44 -0000	1.1.2.4
  @@ -3,6 +3,7 @@
   import org.apache.fop.fo.expr.PropertyException;
   import org.apache.fop.fo.expr.AbstractPropertyValue;
   import org.apache.fop.fo.expr.PropertyValue;
  +import org.apache.fop.fo.expr.PropertyTriplet;
   import org.apache.fop.fo.Properties;
   import org.apache.fop.fo.PropertyConsts;
   
  @@ -33,6 +34,10 @@
       private int sourceProperty;
   
       /**
  +     */
  +    private PropertyTriplet inheritedPercentage = null;
  +
  +    /**
        * @param property the <tt>int</tt> index of the property on which
        * this value is being defined.
        * @param sourceProperty the <tt>int</tt> index of the property from
  @@ -88,6 +93,25 @@
        */
       public int getSourceProperty() {
           return sourceProperty;
  +    }
  +
  +    /**
  +     * @return <tt>PropertyTriplet</tt> which contains or will contain the
  +     * the computed value of the percentage being inherited.  This field
  +     * will be null except when a percentage is being inherited.  If so,
  +     * a null value will be returned.
  +     */
  +    public PropertyTriplet getInheritedPercentage() {
  +        return inheritedPercentage;
  +    }
  +
  +    /**
  +     * @param percentageTriplet the <tt>PropertyTriplet</tt> which contains
  +     * or will contain the the computed value of the percentage being
  +     * inherited.
  +     */
  +    public void setInheritedPercentage(PropertyTriplet percentage) {
  +        inheritedPercentage = percentage;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org