Package org.htmlunit.cssparser.dom
Class RectImpl
- java.lang.Object
-
- org.htmlunit.cssparser.dom.RectImpl
-
- All Implemented Interfaces:
Serializable
public class RectImpl extends Object implements Serializable
Implementation of Rect.- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RectImpl(LexicalUnit lu)Constructor that reads the values from the given chain of LexicalUnits.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CSSValueImplgetBottom()getBottom.CSSValueImplgetLeft()getLeft.CSSValueImplgetRight()getRight.CSSValueImplgetTop()getTop.voidsetBottom(CSSValueImpl bottom)Sets the bottom part to a new value.voidsetLeft(CSSValueImpl left)Sets the left part to a new value.voidsetRight(CSSValueImpl right)Sets the right part to a new value.voidsetTop(CSSValueImpl top)Sets the top part to a new value.StringtoString()
-
-
-
Constructor Detail
-
RectImpl
public RectImpl(LexicalUnit lu) throws DOMException
Constructor that reads the values from the given chain of LexicalUnits.- Parameters:
lu- the values- Throws:
DOMException- in case of error
-
-
Method Detail
-
getTop
public CSSValueImpl getTop()
getTop.
- Returns:
- the top part.
-
setTop
public void setTop(CSSValueImpl top)
Sets the top part to a new value.- Parameters:
top- the new CSSValueImpl
-
getRight
public CSSValueImpl getRight()
getRight.
- Returns:
- the right part.
-
setRight
public void setRight(CSSValueImpl right)
Sets the right part to a new value.- Parameters:
right- the new CSSValueImpl
-
getBottom
public CSSValueImpl getBottom()
getBottom.
- Returns:
- the bottom part.
-
setBottom
public void setBottom(CSSValueImpl bottom)
Sets the bottom part to a new value.- Parameters:
bottom- the new CSSValueImpl
-
getLeft
public CSSValueImpl getLeft()
getLeft.
- Returns:
- the left part.
-
setLeft
public void setLeft(CSSValueImpl left)
Sets the left part to a new value.- Parameters:
left- the new CSSValueImpl
-
-