From cc0fa5f92143580b61a1ae77fc8a2bb26474a45d Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 25 Mar 2009 10:32:23 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@758204 13f79535-47bb-0310-9956-ffa450edef68 --- .../properties/CommonBorderPaddingBackground.java | 64 ++++++++++++++++++++++ .../org/apache/fop/fo/properties/CommonFont.java | 10 ++++ 2 files changed, 74 insertions(+) (limited to 'src/java') diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java index eeafbb68b..e32a4c9b2 100755 --- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java +++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java @@ -650,6 +650,70 @@ public class CommonBorderPaddingBackground { || 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) { diff --git a/src/java/org/apache/fop/fo/properties/CommonFont.java b/src/java/org/apache/fop/fo/properties/CommonFont.java index 11275fdd3..55a2393fa 100755 --- a/src/java/org/apache/fop/fo/properties/CommonFont.java +++ b/src/java/org/apache/fop/fo/properties/CommonFont.java @@ -170,6 +170,16 @@ public final class CommonFont { 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 FontTriplets based on * the properties stored in the instance variables. -- cgit v1.2.3