Class RectPropertySet
- java.lang.Object
-
- com.openhtmltopdf.css.style.derived.RectPropertySet
-
- Direct Known Subclasses:
BorderPropertySet
public class RectPropertySet extends Object
Represents a set of CSS properties that together define some rectangular area, and per-side thickness.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRectPropertySet()RectPropertySet(CSSName cssName, float top, float right, float bottom, float left)
-
Method Summary
Modifier and Type Method Description floatbottom()RectPropertySetcopyOf()floatgetLeftRightDiff()booleanhasNegativeValues()floatheight()booleanisAllZeros()floatleft()static RectPropertySetnewInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx)voidresetNegativeValues()floatright()voidsetBottom(float _bottom)voidsetLeft(float _left)voidsetRight(float _right)voidsetTop(float _top)floattop()StringtoString()floatwidth()
-
-
-
Field Detail
-
ALL_ZEROS
public static final RectPropertySet ALL_ZEROS
-
_top
protected float _top
-
_right
protected float _right
-
_bottom
protected float _bottom
-
_left
protected float _left
-
-
Constructor Detail
-
RectPropertySet
protected RectPropertySet()
-
RectPropertySet
public RectPropertySet(CSSName cssName, float top, float right, float bottom, float left)
-
-
Method Detail
-
newInstance
public static RectPropertySet newInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx)
-
top
public float top()
-
right
public float right()
-
bottom
public float bottom()
-
left
public float left()
-
getLeftRightDiff
public float getLeftRightDiff()
-
height
public float height()
-
width
public float width()
-
setTop
public void setTop(float _top)
-
setRight
public void setRight(float _right)
-
setBottom
public void setBottom(float _bottom)
-
setLeft
public void setLeft(float _left)
-
copyOf
public RectPropertySet copyOf()
-
isAllZeros
public boolean isAllZeros()
-
hasNegativeValues
public boolean hasNegativeValues()
-
resetNegativeValues
public void resetNegativeValues()
-
-