Top Description Fields Constructors Methods
com.openhtmltopdf.css.style.derived

public Class RectPropertySet

extends Object
Class Inheritance
Known Direct Subclasses
com.openhtmltopdf.css.style.derived.BorderPropertySet
Imports
com.openhtmltopdf.css.constants.CSSName, com.openhtmltopdf.css.style.CalculatedStyle, .CssContext

Represents a set of CSS properties that together define some rectangular area, and per-side thickness.

Field Summary

Modifier and TypeField and Description
protected float
protected float
protected float
protected float
public static final RectPropertySet

Constructor Summary

AccessConstructor and Description
protected
public
RectPropertySet(CSSName cssName, float top, float right, float bottom, float left)

Method Summary

Modifier and TypeMethod and Description
public float
public RectPropertySet
public float
public boolean
public float
public boolean
public float
left()

public static RectPropertySet
newInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx)

public void
public float
public void
setBottom(float _bottom)

public void
setLeft(float _left)

public void
setRight(float _right)

public void
setTop(float _top)

public float
top()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public String
toString(String name)

Returns the four values prepended with name.

public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_bottomback to summary
protected float _bottom
_leftback to summary
protected float _left
_rightback to summary
protected float _right
_topback to summary
protected float _top
ALL_ZEROSback to summary
public static final RectPropertySet ALL_ZEROS

Constructor Detail

RectPropertySetback to summary
protected RectPropertySet()
RectPropertySetback to summary
public RectPropertySet(CSSName cssName, float top, float right, float bottom, float left)

Method Detail

bottomback to summary
public float bottom()
copyOfback to summary
public RectPropertySet copyOf()
getLeftRightDiffback to summary
public float getLeftRightDiff()
hasNegativeValuesback to summary
public boolean hasNegativeValues()
heightback to summary
public float height()
isAllZerosback to summary
public boolean isAllZeros()
leftback to summary
public float left()
newInstanceback to summary
public static RectPropertySet newInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx)
resetNegativeValuesback to summary
public void resetNegativeValues()
rightback to summary
public float right()
setBottomback to summary
public void setBottom(float _bottom)
setLeftback to summary
public void setLeft(float _left)
setRightback to summary
public void setRight(float _right)
setTopback to summary
public void setTop(float _top)
topback to summary
public float top()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
toStringback to summary
public String toString(String name)

Returns the four values prepended with name.

widthback to summary
public float width()