| Modifier | Constructor and Description |
|---|---|
protected |
NumericProperty(double value,
int dim)
Construct a Numeric object by specifying one or more components,
including absolute length, percent length, table units.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.awt.Color |
getColor(FOUserAgent foUserAgent)
This method expects to be overridden by subclasses
|
int |
getDimension()
Return the dimension.
|
Length |
getLength()
This method expects to be overridden by subclasses
|
java.lang.Number |
getNumber()
This method expects to be overridden by subclasses
|
Numeric |
getNumeric()
This method expects to be overridden by subclasses
|
double |
getNumericValue()
Return the value.
|
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric
|
java.lang.Object |
getObject()
This method expects to be overridden by subclasses
|
int |
getValue()
Returns the value of this numeric as an int.
|
int |
getValue(PercentBaseContext context)
Returns the value of this numeric as an int.
|
int |
hashCode() |
boolean |
isAbsolute()
Return true of the numeric is absolute.
|
java.lang.String |
toString() |
getCharacter, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValueprotected NumericProperty(double value,
int dim)
value - The value of the numeric.dim - The dimension of the value. 0 for a Number, 1 for a Length
(any type), >1, <0 if Lengths have been multiplied or divided.public int getDimension()
getDimension in interface Numericpublic double getNumericValue()
getNumericValue in interface Numericpublic double getNumericValue(PercentBaseContext context)
getNumericValue in interface Numericcontext - The context for the length calculation (for percentage based lengths)public boolean isAbsolute()
isAbsolute in interface Numericpublic Numeric getNumeric()
getNumeric in class Propertypublic java.lang.Number getNumber()
public int getValue()
public int getValue(PercentBaseContext context)
public Length getLength()
public java.awt.Color getColor(FOUserAgent foUserAgent)
public java.lang.Object getObject()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.