From 40f3a88deafafbaa955418b985f6bb4c0a21202f Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Tue, 29 Jun 2004 07:57:18 +0000 Subject: [PATCH] Added getRefOrientation git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197750 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/FONode.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fo/FONode.java b/src/java/org/apache/fop/fo/FONode.java index bb794b837..19a25fc48 100644 --- a/src/java/org/apache/fop/fo/FONode.java +++ b/src/java/org/apache/fop/fo/FONode.java @@ -34,6 +34,7 @@ import org.apache.fop.datastructs.SyncedNode; import org.apache.fop.datastructs.TreeException; import org.apache.fop.datatypes.CountryType; import org.apache.fop.datatypes.EnumType; +import org.apache.fop.datatypes.IntegerType; import org.apache.fop.datatypes.LanguageType; import org.apache.fop.datatypes.Numeric; import org.apache.fop.datatypes.PropertyValue; @@ -603,12 +604,21 @@ public class FONode extends SyncedNode implements AreaListener { * @return an enumerated constant representing the writing-mode * @throws PropertyException */ - public int getWritingMode() - throws PropertyException { + public int getWritingMode() throws PropertyException { PropertyValue wm = getPropertyValue(PropNames.WRITING_MODE); return EnumType.getEnumValue(wm); } + /** + * Gets the reference-orientation applying to this node. + * @return the orientation as a positive integer quadrant angle + * @throws PropertyException + */ + public int getRefOrientation() throws PropertyException { + PropertyValue rot = getPropertyValue(PropNames.REFERENCE_ORIENTATION); + return IntegerType.getIntValue(rot); + } + /** * Gets the current locale. This is derived from the language * and country properties in effect. Note that no account is -- 2.39.5