pbwest 2002/11/13 07:20:40 Modified: src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design Numeric.java Log: Added isAbsLength() and isAbsOrRelLength(). Revision Changes Path No revision No revision 1.1.2.12 +21 -4 xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java Index: Numeric.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/Numeric.java,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -u -r1.1.2.11 -r1.1.2.12 --- Numeric.java 12 Nov 2002 02:24:36 -0000 1.1.2.11 +++ Numeric.java 13 Nov 2002 15:20:39 -0000 1.1.2.12 @@ -391,10 +391,27 @@ } /** - * This object is a length in millipoints. + * This object is a length in millipoints. Same as isAbsLength(). */ public boolean isLength() { return (baseunit == MILLIPOINTS && power == 1); + } + + /** + * This object is a length in millipoints. + */ + public boolean isAbsLength() { + return (baseunit == MILLIPOINTS && power == 1); + } + + /** + * This object is an absolute or relative length. I.e., it has a + * baseunit of MILLIPOINTS with a power of 1, or a baseunit of + * either PERCENTAGE or EMS. + */ + public boolean isAbsOrRelLength() { + return ((baseunit == MILLIPOINTS && power == 1) + || baseunit == PERCENTAGE || baseunit == EMS); } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]