Package org.htmlunit.cssparser.dom
Class RectImpl
- java.lang.Object
-
- org.htmlunit.cssparser.dom.RectImpl
-
- All Implemented Interfaces:
java.io.Serializable
public class RectImpl extends java.lang.Object implements java.io.Serializable
Implementation of Rect.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CSSValueImpl
bottom_
private CSSValueImpl
left_
private CSSValueImpl
right_
private CSSValueImpl
top_
-
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 CSSValueImpl
getBottom()
CSSValueImpl
getLeft()
CSSValueImpl
getRight()
CSSValueImpl
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.java.lang.String
toString()
-
-
-
Field Detail
-
top_
private CSSValueImpl top_
-
right_
private CSSValueImpl right_
-
bottom_
private CSSValueImpl bottom_
-
left_
private CSSValueImpl left_
-
-
Constructor Detail
-
RectImpl
public RectImpl(LexicalUnit lu) throws org.w3c.dom.DOMException
Constructor that reads the values from the given chain of LexicalUnits.- Parameters:
lu
- the values- Throws:
org.w3c.dom.DOMException
- in case of error
-
-
Method Detail
-
getTop
public CSSValueImpl getTop()
- Returns:
- the top part.
-
setTop
public void setTop(CSSValueImpl top)
Sets the top part to a new value.- Parameters:
top
- the new CSSPrimitiveValue
-
getRight
public CSSValueImpl getRight()
- Returns:
- the right part.
-
setRight
public void setRight(CSSValueImpl right)
Sets the right part to a new value.- Parameters:
right
- the new CSSPrimitiveValue
-
getBottom
public CSSValueImpl getBottom()
- Returns:
- the bottom part.
-
setBottom
public void setBottom(CSSValueImpl bottom)
Sets the bottom part to a new value.- Parameters:
bottom
- the new CSSPrimitiveValue
-
getLeft
public CSSValueImpl getLeft()
- Returns:
- the left part.
-
setLeft
public void setLeft(CSSValueImpl left)
Sets the left part to a new value.- Parameters:
left
- the new CSSPrimitiveValue
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-