org.lobobrowser.html.style
Class HtmlLength
java.lang.Object
org.lobobrowser.html.style.HtmlLength
public final class HtmlLength
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
HtmlLength
public HtmlLength(java.lang.String spec)
throws java.lang.IndexOutOfBoundsException,
java.lang.NumberFormatException
- Throws:
java.lang.IndexOutOfBoundsException
java.lang.NumberFormatException
HtmlLength
public HtmlLength(int pixels)
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)