Package org.lobobrowser.html.style
Class HtmlLength
- java.lang.Object
-
- org.lobobrowser.html.style.HtmlLength
-
public final class HtmlLength extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static HtmlLength[]
EMPTY_ARRAY
static int
LENGTH
static int
MULTI_LENGTH
static int
PIXELS
-
Constructor Summary
Constructors Constructor Description HtmlLength(int pixels)
HtmlLength(java.lang.String spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
divideBy(int denominator)
int
getLength(int availLength)
int
getLengthType()
int
getRawValue()
boolean
isPreferredOver(HtmlLength otherLength)
-
-
-
Field Detail
-
PIXELS
public static final int PIXELS
- See Also:
- Constant Field Values
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
MULTI_LENGTH
public static final int MULTI_LENGTH
- See Also:
- Constant Field Values
-
EMPTY_ARRAY
public static final HtmlLength[] EMPTY_ARRAY
-
-
Method Detail
-
getLengthType
public final int getLengthType()
- Returns:
- Returns the lengthType.
-
getRawValue
public final int getRawValue()
- Returns:
- Returns the spec.
-
getLength
public final int getLength(int availLength)
-
divideBy
public final void divideBy(int denominator)
-
isPreferredOver
public final boolean isPreferredOver(HtmlLength otherLength)
-
-