org.lobobrowser.html.style

Class HtmlLength


public final class HtmlLength
extends java.lang.Object

Field Summary

static HtmlLength[]
EMPTY_ARRAY
static int
LENGTH
static int
MULTI_LENGTH
static int
PIXELS

Constructor Summary

HtmlLength(String spec)
HtmlLength(int pixels)

Method Summary

void
divideBy(int denominator)
int
getLength(int availLength)
int
getLengthType()
int
getRawValue()
boolean
isPreferredOver(HtmlLength otherLength)

Field Details

EMPTY_ARRAY

public static final HtmlLength[] EMPTY_ARRAY

LENGTH

public static final int LENGTH
Field Value:
2

MULTI_LENGTH

public static final int MULTI_LENGTH
Field Value:
0

PIXELS

public static final int PIXELS
Field Value:
1

Constructor Details

HtmlLength

public HtmlLength(String spec)
            throws IndexOutOfBoundsException,
                   NumberFormatException

HtmlLength

public HtmlLength(int pixels)

Method Details

divideBy

public final void divideBy(int denominator)

getLength

public final int getLength(int availLength)

getLengthType

public final int getLengthType()
Returns:
Returns the lengthType.

getRawValue

public final int getRawValue()
Returns:
Returns the spec.

isPreferredOver

public final boolean isPreferredOver(HtmlLength otherLength)