git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198049
13f79535-47bb-0310-9956-
ffa450edef68
* @return true when the numeric is absolute.
*/
boolean isAbsolute();
-
+
+ /**
+ * Returns the value of this numeric as an int.
+ * @return the value as an integer.
+ */
+ public int getValue();
+
/**
* Return the resolved value. This method will becalled during evaluation
* of the expression tree and relative numerics can then return a
return number.doubleValue();
}
+ public int getValue() {
+ return number.intValue();
+ }
+
/**
* Return true because all numbers are absolute.
* @return true.