public class EnumLength extends LengthProperty
LengthProperty.Maker| Constructor and Description |
|---|
EnumLength(Property enumProperty)
Construct an enumerated length from an enum property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getEnum()
This method expects to be overridden by subclasses
|
double |
getNumericValue()
Return the value of this Numeric
|
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric
|
java.lang.Object |
getObject()
This method expects to be overridden by subclasses
|
java.lang.String |
getString()
This method expects to be overridden by subclasses.
|
int |
getValue()
Returns the length in 1/1000ths of a point (millipoints)
|
int |
getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints)
|
int |
hashCode() |
boolean |
isAbsolute()
Return true if the numeric is an absolute value.
|
getDimension, getLength, getNumericgetCharacter, getColor, getCondLength, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toStringpublic EnumLength(Property enumProperty)
enumProperty - the enumeration propertypublic int getEnum()
public boolean isAbsolute()
Numericpublic int getValue()
public int getValue(PercentBaseContext context)
context - The context for the length calculation (for percentage based lengths)public double getNumericValue()
public double getNumericValue(PercentBaseContext context)
context - The context for the length calculation (for percentage based lengths)public java.lang.String getString()
public java.lang.Object getObject()
getObject in class LengthPropertypublic 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.