Class RectPropertySet
java.lang.Object
org.xhtmlrenderer.css.style.derived.RectPropertySet
- Direct Known Subclasses:
BorderPropertySet
Represents a set of CSS properties that together define
some rectangular area, and per-side thickness.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RectPropertySet
(float top, float right, float bottom, float left) -
Method Summary
Modifier and TypeMethodDescriptionfloat
bottom()
copyOf()
float
boolean
float
height()
boolean
float
left()
static RectPropertySet
newInstance
(CalculatedStyle style, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx) void
float
right()
void
setBottom
(float _bottom) void
setLeft
(float _left) void
setRight
(float _right) void
setTop
(float _top) float
top()
toString()
float
width()
-
Field Details
-
ALL_ZEROS
-
_top
protected float _top -
_right
protected float _right -
_bottom
protected float _bottom -
_left
protected float _left
-
-
Constructor Details
-
RectPropertySet
protected RectPropertySet() -
RectPropertySet
public RectPropertySet(float top, float right, float bottom, float left)
-
-
Method Details
-
newInstance
public static RectPropertySet newInstance(CalculatedStyle style, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx) -
toString
-
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
-
isAllZeros
public boolean isAllZeros() -
hasNegativeValues
public boolean hasNegativeValues() -
resetNegativeValues
public void resetNegativeValues()
-