]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
First phase of performance improvement.
authorFinn Bock <bckfnn@apache.org>
Mon, 18 Oct 2004 20:30:22 +0000 (20:30 +0000)
committerFinn Bock <bckfnn@apache.org>
Mon, 18 Oct 2004 20:30:22 +0000 (20:30 +0000)
PR: 31699

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198053 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/PropertyList.java

index e15374156b0d91aa8e05be642ddaf3c7ff7129c7..e3a33ae0137ac228ed7d7fcba4a5abcc900fad4f 100644 (file)
@@ -25,6 +25,15 @@ import org.xml.sax.Attributes;
 
 // 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;
 
@@ -385,6 +394,14 @@ public class PropertyList extends HashMap {
         this.writingModeTable = (byte[])WRITING_MODE_TABLES.get(new Integer(writingMode));
     }
 
+    /**
+     * 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)
@@ -647,6 +664,81 @@ public class PropertyList extends HashMap {
             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);
+    }
 }