Package org.htmlunit.cssparser.dom
Class RectImpl
java.lang.Object
org.htmlunit.cssparser.dom.RectImpl
- All Implemented Interfaces:
Serializable
Implementation of Rect.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionRectImpl
(LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetBottom.getLeft()
getLeft.getRight()
getRight.getTop()
getTop.void
setBottom
(CSSValueImpl bottom) Sets the bottom part to a new value.void
setLeft
(CSSValueImpl left) Sets the left part to a new value.void
setRight
(CSSValueImpl right) Sets the right part to a new value.void
setTop
(CSSValueImpl top) Sets the top part to a new value.toString()
-
Constructor Details
-
RectImpl
Constructor that reads the values from the given chain of LexicalUnits.- Parameters:
lu
- the values- Throws:
DOMException
- in case of error
-
-
Method Details
-
getTop
getTop.
- Returns:
- the top part.
-
setTop
Sets the top part to a new value.- Parameters:
top
- the new CSSValueImpl
-
getRight
getRight.
- Returns:
- the right part.
-
setRight
Sets the right part to a new value.- Parameters:
right
- the new CSSValueImpl
-
getBottom
getBottom.
- Returns:
- the bottom part.
-
setBottom
Sets the bottom part to a new value.- Parameters:
bottom
- the new CSSValueImpl
-
getLeft
getLeft.
- Returns:
- the left part.
-
setLeft
Sets the left part to a new value.- Parameters:
left
- the new CSSValueImpl
-
toString
-