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
ConstructorsConstructorDescriptionRectImpl(LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetBottom.getLeft()getLeft.getRight()getRight.getTop()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.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
-