Class RectImpl
java.lang.Object
org.htmlunit.cssparser.dom.RectImpl
- All Implemented Interfaces:
Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CSSValueImplprivate CSSValueImplprivate CSSValueImplprivate CSSValueImpl -
Constructor Summary
ConstructorsConstructorDescriptionRectImpl(LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetLeft()getRight()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()
-
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
-