summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Bernard West <pbwest@apache.org>2004-06-29 07:57:18 +0000
committerPeter Bernard West <pbwest@apache.org>2004-06-29 07:57:18 +0000
commit40f3a88deafafbaa955418b985f6bb4c0a21202f (patch)
treed048bd8975038a153145b2c7a7b6173af3f457f1 /src
parentecfb7d439a401c7570b3ff0b6268beb7b41ed4b7 (diff)
downloadxmlgraphics-fop-40f3a88deafafbaa955418b985f6bb4c0a21202f.tar.gz
xmlgraphics-fop-40f3a88deafafbaa955418b985f6bb4c0a21202f.zip
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
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.