public class RectImpl extends Object implements org.w3c.dom.css.Rect, CSSFormatable, Serializable
Rect
.Constructor and Description |
---|
RectImpl()
Constructor.
|
RectImpl(LexicalUnit lu)
Constructor that reads the values from the given
chain of LexicalUnits.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.css.CSSPrimitiveValue |
getBottom()
Returns the bottom part.
|
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
org.w3c.dom.css.CSSPrimitiveValue |
getLeft()
Returns the left part.
|
org.w3c.dom.css.CSSPrimitiveValue |
getRight()
Returns the right part.
|
org.w3c.dom.css.CSSPrimitiveValue |
getTop()
Returns the top part.
|
void |
setBottom(org.w3c.dom.css.CSSPrimitiveValue bottom)
Sets the bottom part to a new value.
|
void |
setLeft(org.w3c.dom.css.CSSPrimitiveValue left)
Sets the left part to a new value.
|
void |
setRight(org.w3c.dom.css.CSSPrimitiveValue right)
Sets the right part to a new value.
|
void |
setTop(org.w3c.dom.css.CSSPrimitiveValue top)
Sets the top part to a new value.
|
String |
toString() |
public RectImpl(LexicalUnit lu) throws DOMException
lu
- the valuesDOMException
- in case of errorpublic RectImpl()
public org.w3c.dom.css.CSSPrimitiveValue getTop()
getTop
in interface org.w3c.dom.css.Rect
public void setTop(org.w3c.dom.css.CSSPrimitiveValue top)
top
- the new CSSPrimitiveValuepublic org.w3c.dom.css.CSSPrimitiveValue getRight()
getRight
in interface org.w3c.dom.css.Rect
public void setRight(org.w3c.dom.css.CSSPrimitiveValue right)
right
- the new CSSPrimitiveValuepublic org.w3c.dom.css.CSSPrimitiveValue getBottom()
getBottom
in interface org.w3c.dom.css.Rect
public void setBottom(org.w3c.dom.css.CSSPrimitiveValue bottom)
bottom
- the new CSSPrimitiveValuepublic org.w3c.dom.css.CSSPrimitiveValue getLeft()
getLeft
in interface org.w3c.dom.css.Rect
public void setLeft(org.w3c.dom.css.CSSPrimitiveValue left)
left
- the new CSSPrimitiveValuepublic String getCssText()
getCssText(CSSFormat)
but using the default format.public String getCssText(CSSFormat format)
getCssText
in interface CSSFormatable
format
- the formatting rulesCopyright © 1999–2022. All rights reserved.