Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.css.style
Class Length

java.lang.Object
  extended by org.xhtmlrenderer.css.style.Length

public class Length
extends java.lang.Object


Field Summary
static int FIXED
           
static int MAX_WIDTH
           
static int PERCENT
           
static int VARIABLE
           
 
Constructor Summary
Length()
           
Length(long value, int type)
           
 
Method Summary
 boolean isFixed()
           
 boolean isPercent()
           
 boolean isVariable()
           
 long minWidth(int maxWidth)
           
 void setType(int type)
           
 void setValue(long value)
           
 java.lang.String toString()
           
 int type()
           
 long value()
           
 long width(int maxWidth)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_WIDTH

public static final int MAX_WIDTH
See Also:
Constant Field Values

VARIABLE

public static final int VARIABLE
See Also:
Constant Field Values

FIXED

public static final int FIXED
See Also:
Constant Field Values

PERCENT

public static final int PERCENT
See Also:
Constant Field Values
Constructor Detail

Length

public Length()

Length

public Length(long value,
              int type)
Method Detail

setValue

public void setValue(long value)

value

public long value()

setType

public void setType(int type)

type

public int type()

isVariable

public boolean isVariable()

isFixed

public boolean isFixed()

isPercent

public boolean isPercent()

width

public long width(int maxWidth)

minWidth

public long minWidth(int maxWidth)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home