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 ac...@apache.org on 2009/03/25 11:32:26 UTC

svn commit: r758204 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties: CommonBorderPaddingBackground.java CommonFont.java

Author: acumiskey
Date: Wed Mar 25 10:32:23 2009
New Revision: 758204

URL: http://svn.apache.org/viewvc?rev=758204&view=rev
Log:
Added some accessor methods to some public member variables.  I have left the public member variables exposed for now as changing them to private/protected may possibly break something external to FOP.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonFont.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java?rev=758204&r1=758203&r2=758204&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java Wed Mar 25 10:32:23 2009
@@ -650,6 +650,70 @@
                 || borderInfo[START] != null || borderInfo[END] != null);
     }
 
+    /**
+     * Returns the "background-attachment" property.
+     * @return the "background-attachment" property.
+     */
+    public int getBackgroundAttachment() {
+        return backgroundAttachment;
+    }
+
+    /**
+     * Returns the "background-image" property.
+     * @return the "background-image" property.
+     */
+    public String getBackgroundImage() {
+        return backgroundImage;
+    }
+
+    /**
+     * Returns the "background-repeat" property.
+     * @return the "background-repeat" property.
+     */
+    public int getBackgroundRepeat() {
+        return backgroundRepeat;
+    }
+
+    /**
+     * Returns the "background-position-horizontal" property.
+     * @return the "background-position-horizontal" property.
+     */
+    public Length getBackgroundPositionHorizontal() {
+        return backgroundPositionHorizontal;
+    }
+
+    /**
+     * Returns the "background-position-vertical" property.
+     * @return the "background-position-vertical" property.
+     */
+    public Length getBackgroundPositionVertical() {
+        return backgroundPositionVertical;
+    }
+
+    /**
+     * Returns the background image info
+     * @return the background image info
+     */
+    public ImageInfo getBackgroundImageInfo() {
+        return backgroundImageInfo;
+    }
+
+    /**
+     * Returns the border info
+     * @return the border info
+     */
+    public BorderInfo[] getBorderInfo() {
+        return borderInfo;
+    }
+
+    /**
+     * Returns the padding
+     * @return the padding
+     */
+    public CondLengthProperty[] getPadding() {
+        return padding;
+    }
+
     /** {@inheritDoc} */
     public boolean equals(Object obj) {
         if (this == obj) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonFont.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonFont.java?rev=758204&r1=758203&r2=758204&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonFont.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonFont.java Wed Mar 25 10:32:23 2009
@@ -170,6 +170,16 @@
         return fontWeight.getEnum();
     }
 
+    /** @return the "font-size" property. */
+    public Length getFontSize() {
+        return fontSize;
+    }
+
+    /** @return the "font-size-adjust" property. */
+    public Numeric getFontSizeAdjust() {
+        return fontSizeAdjust;
+    }
+
     /**
      * Create and return an array of <code>FontTriplets</code> based on
      * the properties stored in the instance variables.



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