Package org.htmlunit.cssparser.dom
Class RectImpl
java.lang.Object
org.htmlunit.cssparser.dom.RectImpl
- All Implemented Interfaces:
Serializable
Implementation of Rect.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CSSValueImpl
private CSSValueImpl
private CSSValueImpl
private CSSValueImpl
-
Constructor Summary
ConstructorsConstructorDescriptionRectImpl
(LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetLeft()
getRight()
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()
-
Field Details
-
top_
-
right_
-
bottom_
-
left_
-
-
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
- Returns:
- the top part.
-
setTop
Sets the top part to a new value.- Parameters:
top
- the new CSSPrimitiveValue
-
getRight
- Returns:
- the right part.
-
setRight
Sets the right part to a new value.- Parameters:
right
- the new CSSPrimitiveValue
-
getBottom
- Returns:
- the bottom part.
-
setBottom
Sets the bottom part to a new value.- Parameters:
bottom
- the new CSSPrimitiveValue
-
getLeft
- Returns:
- the left part.
-
setLeft
Sets the left part to a new value.- Parameters:
left
- the new CSSPrimitiveValue
-
toString
-