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, 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 java.lang.String getString()
public java.lang.Object getObject()
getObject
in class LengthProperty
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.