public class Length extends Object implements Comparable<Length>
Modifier and Type | Class and Description |
---|---|
static class |
Length.PhysicalUnit |
static class |
Length.Type |
Modifier and Type | Field and Description |
---|---|
static List<Length> |
cache |
static Length |
DEFAULT_0 |
static Length |
DEFAULT_1 |
static Length |
DEFAULT_2 |
static double |
EPSILON |
static Length |
FILL_AVAILABLE_INLINE |
static Length |
MAX_CONTENT |
static Length |
NORMAL |
static Length |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
static boolean |
areEssentiallyEqual(float u,
float v) |
int |
compareTo(Length other) |
int |
computeIntValue(float base,
Element element) |
int |
computeIntValue(float base,
float fontSize,
float rembase) |
float |
computeValue(float base,
Element element) |
float |
computeValue(float base,
float fontSize,
float rembase) |
boolean |
equals(Object other) |
static Length |
instance() |
static Length |
instance(float value) |
static Length |
instance(Length.Type vtype,
double value) |
static Length |
instance(Length.Type vtype,
double value,
Length.PhysicalUnit unit) |
static Length |
instance(Length.Type vtype,
float value) |
static Length |
instance(Length.Type vtype,
float value,
Length.PhysicalUnit unit) |
int |
intValue() |
boolean |
isAuto() |
boolean |
isCalc() |
boolean |
isFitContent() |
boolean |
isFixed() |
boolean |
isIntrinsic() |
boolean |
isIntrinsicOrAuto() |
boolean |
isMaxContent() |
boolean |
isMinContent() |
boolean |
isNegative() |
boolean |
isPercent() |
boolean |
isPercentOrCalculated() |
boolean |
isPhysical() |
boolean |
isPositive() |
boolean |
isRelative() |
boolean |
isRootRelative() |
boolean |
isSpecified() |
boolean |
isSpecifiedOrIntrinsic() |
boolean |
isUndefined() |
boolean |
isZero() |
static boolean |
isZero(float f) |
static boolean |
isZeroOrLess(float f) |
float |
percent() |
static float |
safeFPDivision(float u,
float v) |
String |
toString() |
Length.Type |
type() |
float |
value() |
public static final double EPSILON
public static final Length UNDEFINED
public static final Length DEFAULT_0
public static final Length DEFAULT_1
public static final Length DEFAULT_2
public static final Length NORMAL
public static final Length MAX_CONTENT
public static final Length FILL_AVAILABLE_INLINE
public int compareTo(Length other)
compareTo
in interface Comparable<Length>
public static Length instance()
public static Length instance(float value)
public static Length instance(Length.Type vtype, float value)
public static Length instance(Length.Type vtype, float value, Length.PhysicalUnit unit)
public static Length instance(Length.Type vtype, double value)
public static Length instance(Length.Type vtype, double value, Length.PhysicalUnit unit)
public float value()
public int intValue()
public int computeIntValue(float base, float fontSize, float rembase)
public float computeValue(float base, float fontSize, float rembase)
public int computeIntValue(float base, Element element)
public float computeValue(float base, Element element)
public boolean isFixed()
public boolean isPercentOrCalculated()
public boolean isPositive()
public boolean isAuto()
public boolean isPercent()
public boolean isCalc()
public boolean isRootRelative()
public float percent()
public boolean isZero()
public static boolean isZero(float f)
public static boolean isZeroOrLess(float f)
public boolean isRelative()
public boolean isUndefined()
public Length.Type type()
public boolean isNegative()
public static boolean areEssentiallyEqual(float u, float v)
public static float safeFPDivision(float u, float v)
public boolean isSpecified()
public boolean isMinContent()
public boolean isMaxContent()
public boolean isFitContent()
public boolean isIntrinsicOrAuto()
public boolean isIntrinsic()
public boolean isSpecifiedOrIntrinsic()
public boolean isPhysical()
Revision 4.0.15 / 20220727-0149