org.apache.fop.fo.expr
Class RelativeNumericProperty
- Length, Numeric
public class RelativeNumericProperty
This class represent a node in a property expression tree.
It is created when an operation involve relative expression and is used
to delay evaluation of the operation until the time where getNumericValue()
or getValue() is called.
getCharacter , getColor , getCondLength , getEnum , getKeep , getLength , getLengthPair , getLengthRange , getList , getNCname , getNumber , getNumeric , getObject , getSpace , getSpecifiedValue , getString , isAuto , setSpecifiedValue , toString |
ABS
public static final int ABS
ADDITION
public static final int ADDITION
DIVIDE
public static final int DIVIDE
MAX
public static final int MAX
MIN
public static final int MIN
MODULO
public static final int MODULO
MULTIPLY
public static final int MULTIPLY
NEGATE
public static final int NEGATE
SUBTRACTION
public static final int SUBTRACTION
RelativeNumericProperty
public RelativeNumericProperty(int operation,
Numeric op)
Constructor for a one argument operation.
operation
- the operation opcode: NEGATE, ABSop
- the operand.
RelativeNumericProperty
public RelativeNumericProperty(int operation,
Numeric op1,
Numeric op2)
Constructor for a two argument operation.
operation
- the operation opcode: ADDITION, SUBTRACTION, ...op1
- the first operand.op2
- the second operand
getDimension
public int getDimension()
Return the dimension of the expression
- getDimension in interface Numeric
isAbsolute
public boolean isAbsolute()
Return false since an expression is only created when there is relative
numerics involved.
- isAbsolute in interface Numeric
toString
public String toString()
Return a string represention of the expression. Only used for debugging.
- toString in interface Property
- the string representation.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.