org.lobobrowser.html.style
public final class HtmlLength extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static HtmlLength[] |
EMPTY_ARRAY |
static int |
LENGTH |
static int |
MULTI_LENGTH |
static int |
PIXELS |
Constructor and Description |
---|
HtmlLength(int pixels) |
HtmlLength(java.lang.String spec) |
Modifier and Type | Method and Description |
---|---|
void |
divideBy(int denominator) |
int |
getLength(int availLength) |
int |
getLengthType() |
int |
getRawValue() |
boolean |
isPreferredOver(HtmlLength otherLength) |
public static final int PIXELS
public static final int LENGTH
public static final int MULTI_LENGTH
public static final HtmlLength[] EMPTY_ARRAY
public HtmlLength(java.lang.String spec) throws java.lang.IndexOutOfBoundsException, java.lang.NumberFormatException
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
public HtmlLength(int pixels)
public final int getLengthType()
public final int getRawValue()
public final int getLength(int availLength)
public final void divideBy(int denominator)
public final boolean isPreferredOver(HtmlLength otherLength)