|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.parser.style.AbstractCSSValue | +--org.apache.batik.parser.style.CSSRectValue
This class represents CSS rect values
Field Summary | |
protected CSSPrimitiveValue |
bottom
The bottom value. |
protected CSSPrimitiveValue |
left
The left value. |
protected CSSPrimitiveValue |
right
The right value. |
protected CSSPrimitiveValue |
top
The top value. |
Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue |
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI |
Fields inherited from interface org.w3c.dom.css.CSSValue |
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
Constructor Summary | |
CSSRectValue(CSSPrimitiveValue t,
CSSPrimitiveValue r,
CSSPrimitiveValue b,
CSSPrimitiveValue l)
Creates a new rect value. |
Method Summary | |
CSSPrimitiveValue |
getBottom()
DOM: Implements Rect.getBottom() . |
java.lang.String |
getCssText()
DOM: Implements CSSValue.getCssText() . |
short |
getCssValueType()
DOM: Implements CSSValue.getCssValueType() . |
CSSPrimitiveValue |
getLeft()
DOM: Implements Rect.getLeft() . |
short |
getPrimitiveType()
DOM: Implements CSSPrimitiveValue.getPrimitiveType() . |
Rect |
getRectValue()
DOM: Implements CSSPrimitiveValue.getRectValue() . |
CSSPrimitiveValue |
getRight()
DOM: Implements Rect.getRight() . |
CSSPrimitiveValue |
getTop()
DOM: Implements Rect.getTop() . |
Methods inherited from class org.apache.batik.parser.style.AbstractCSSValue |
getCounterValue, getFloatValue, getLength, getRGBColorValue, getStringValue, item, setCssText, setFloatValue, setStringValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CSSPrimitiveValue top
protected CSSPrimitiveValue right
protected CSSPrimitiveValue bottom
protected CSSPrimitiveValue left
Constructor Detail |
public CSSRectValue(CSSPrimitiveValue t, CSSPrimitiveValue r, CSSPrimitiveValue b, CSSPrimitiveValue l)
t
- The top length.t
- The right length.t
- The bottom length.t
- The left length.Method Detail |
public short getCssValueType()
CSSValue.getCssValueType()
.public short getPrimitiveType()
CSSPrimitiveValue.getPrimitiveType()
.getPrimitiveType
in class AbstractCSSValue
public java.lang.String getCssText()
CSSValue.getCssText()
.org.w3c.dom.css.CSSValue
DOMException
- SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error (according to the attached property) or is unparsable.
public Rect getRectValue() throws DOMException
CSSPrimitiveValue.getRectValue()
.getRectValue
in class AbstractCSSValue
org.w3c.dom.css.CSSPrimitiveValue
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
value. (e.g. this is not CSS_RECT
).public CSSPrimitiveValue getTop()
Rect.getTop()
.getTop
in interface Rect
public CSSPrimitiveValue getRight()
Rect.getRight()
.getRight
in interface Rect
public CSSPrimitiveValue getBottom()
Rect.getBottom()
.getBottom
in interface Rect
public CSSPrimitiveValue getLeft()
Rect.getLeft()
.getLeft
in interface Rect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |