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(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
|
Object |
getObject()
This method expects to be overridden by subclasses
|
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, getNumeric
getCharacter, getColor, getCondLength, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString
public EnumLength(Property enumProperty)
enumProperty
- the enumeration propertypublic int getEnum()
public boolean isAbsolute()
Numeric
public 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 String getString()
public Object getObject()
getObject
in class LengthProperty
Copyright © 2025 Apache Software Foundation. All rights reserved.