org.lobobrowser.html.style
Class HtmlLength

java.lang.Object
  extended by org.lobobrowser.html.style.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(int pixels)
           
HtmlLength(java.lang.String spec)
           
 
Method Summary
 void divideBy(int denominator)
           
 int getLength(int availLength)
           
 int getLengthType()
           
 int getRawValue()
           
 boolean isPreferredOver(HtmlLength otherLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

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)
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)