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 bc...@apache.org on 2004/10/18 22:30:22 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo PropertyList.java

bckfnn      2004/10/18 13:30:22

  Modified:    src/java/org/apache/fop/fo PropertyList.java
  Log:
  First phase of performance improvement.
  PR: 31699
  
  Revision  Changes    Path
  1.36      +92 -0     xml-fop/src/java/org/apache/fop/fo/PropertyList.java
  
  Index: PropertyList.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/PropertyList.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- PropertyList.java	1 Aug 2004 04:20:48 -0000	1.35
  +++ PropertyList.java	18 Oct 2004 20:30:22 -0000	1.36
  @@ -25,6 +25,15 @@
   
   // FOP
   import org.apache.fop.apps.FOPException;
  +import org.apache.fop.fo.properties.CommonAbsolutePosition;
  +import org.apache.fop.fo.properties.CommonAccessibility;
  +import org.apache.fop.fo.properties.CommonAural;
  +import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
  +import org.apache.fop.fo.properties.CommonFont;
  +import org.apache.fop.fo.properties.CommonHyphenation;
  +import org.apache.fop.fo.properties.CommonMarginBlock;
  +import org.apache.fop.fo.properties.CommonMarginInline;
  +import org.apache.fop.fo.properties.CommonRelativePosition;
   import org.apache.fop.fo.properties.Property;
   import org.apache.fop.fo.properties.PropertyMaker;
   
  @@ -386,6 +395,14 @@
       }
   
       /**
  +     * Return the "writing-mode" property value. 
  +     * @return The "writing-mode" property value.
  +     */
  +    public int getWritingMode() {
  +        return writingMode;
  +    }
  +
  +    /**
        * Uses the stored writingMode.
        * @param absdir an absolute direction (top, bottom, left, right)
        * @return the corresponding writing model relative direction name
  @@ -647,6 +664,81 @@
               return FObj.propertyListTable[propId];
           }
       }
  +
  +    /**
  +     * Constructs a BorderAndPadding object.
  +     * @return a BorderAndPadding object
  +     */
  +    public CommonBorderPaddingBackground getBorderPaddingBackgroundProps() {
  +        return new CommonBorderPaddingBackground(this);
  +    }
  +    
  +
  +    
  +    /**
  +     * Constructs a HyphenationProps objects.
  +     * @return a HyphenationProps object
  +     */
  +    public CommonHyphenation getHyphenationProps() {
  +        return new CommonHyphenation();
  +    }
  +    
  +    /**
  +     * Constructs a MarginProps objects.
  +     * @return a MarginProps object
  +     */
  +    public CommonMarginBlock getMarginBlockProps() {
  +        return new CommonMarginBlock();
  +    }
  +    
  +    /**
  +     * Constructs a MarginInlineProps objects.
  +     * @return a MarginInlineProps object
  +     */
  +    public CommonMarginInline getMarginInlineProps() {
  +        return new CommonMarginInline();
  +    }
       
  +    /**
  +     * Constructs a AccessibilityProps objects. 
  +     * @return a AccessibilityProps object
  +     */
  +    public CommonAccessibility getAccessibilityProps() {
  +        return new CommonAccessibility();
  +    }
  +
  +    /**
  +     * Constructs a AuralProps objects.
  +     * @return a AuralProps object
  +     */
  +    public CommonAural getAuralProps() {
  +        CommonAural props = new CommonAural();
  +        return props;
  +    }
  +
  +    /**
  +     * Constructs a RelativePositionProps objects.
  +     * @return a RelativePositionProps object
  +     */
  +    public CommonRelativePosition getRelativePositionProps() {
  +        return new CommonRelativePosition();
  +    }
  +    
  +    /**
  +     * Constructs a AbsolutePositionProps objects.
  +     * @return a AbsolutePositionProps object
  +     */
  +    public CommonAbsolutePosition getAbsolutePositionProps() {
  +        return new CommonAbsolutePosition();
  +    }    
  +    
  +
  +    /**
  +     * Constructs a CommonFont object. 
  +     * @return A CommonFont object
  +     */
  +    public CommonFont getFontProps() {
  +        return new CommonFont(this);
  +    }
   }
   
  
  
  

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