pbwest 2004/06/29 00:57:18 Modified: src/java/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FONode.java Log: Added getRefOrientation Revision Changes Path No revision No revision 1.2.2.32 +12 -2 xml-fop/src/java/org/apache/fop/fo/FONode.java Index: FONode.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FONode.java,v retrieving revision 1.2.2.31 retrieving revision 1.2.2.32 diff -u -r1.2.2.31 -r1.2.2.32 --- FONode.java 30 May 2004 06:30:36 -0000 1.2.2.31 +++ FONode.java 29 Jun 2004 07:57:18 -0000 1.2.2.32 @@ -34,6 +34,7 @@ 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,10 +604,19 @@ * @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); } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]