summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/FONode.java14
1 files 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,13 +604,22 @@ 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 <code>reference-orientation</code> 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 <code>language</code>
* and <code>country</code> properties in effect. Note that no account is
* taken of <code>script</code> at this stage.