Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.css.style.derived
Class RectPropertySet

java.lang.Object
  extended by org.xhtmlrenderer.css.style.derived.RectPropertySet
Direct Known Subclasses:
BorderPropertySet

public class RectPropertySet
extends java.lang.Object

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


Field Summary
static RectPropertySet ALL_ZEROS
           
 
Constructor Summary
RectPropertySet(CSSName cssName, float top, float right, float bottom, float left)
           
 
Method Summary
 float bottom()
           
 RectPropertySet copyOf()
           
 float getLeftRightDiff()
           
 boolean hasNegativeValues()
           
 float height()
           
 boolean isAllZeros()
           
 float left()
           
static RectPropertySet newInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName[] sideProperties, float cbWidth, CssContext ctx)
           
 void resetNegativeValues()
           
 float right()
           
 void setBottom(float _bottom)
           
 void setLeft(float _left)
           
 void setRight(float _right)
           
 void setTop(float _top)
           
 float top()
           
 java.lang.String toString()
           
 float width()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_ZEROS

public static final RectPropertySet ALL_ZEROS
Constructor Detail

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[] sideProperties,
                                          float cbWidth,
                                          CssContext ctx)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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()

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home