Package com.openhtmltopdf.css.style
Class Length
- java.lang.Object
-
- com.openhtmltopdf.css.style.Length
-
public class Length extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
_type
private int _type
-
_value
private long _value
-
-
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 classjava.lang.Object
-
-