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 booleanisFixed()booleanisPercent()booleanisVariable()longminWidth(int maxWidth)voidsetType(int type)voidsetValue(long value)java.lang.StringtoString()inttype()longvalue()longwidth(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:
toStringin classjava.lang.Object
-
-