|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.value.AbstractImmutableValue | +--org.apache.batik.css.value.AbstractImmutablePrimitiveValue | +--org.apache.batik.css.value.ImmutableRect
This class represents immutable 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. |
Constructor Summary | |
ImmutableRect(CSSPrimitiveValue t,
CSSPrimitiveValue r,
CSSPrimitiveValue b,
CSSPrimitiveValue l)
Creates a new Rect value. |
Method Summary | |
ImmutableValue |
createReadOnlyCopy()
Returns a deep read-only copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
CSSPrimitiveValue |
getBottom()
This attribute is used for the bottom of the rect. |
java.lang.String |
getCssText()
A string representation of the current value. |
CSSPrimitiveValue |
getLeft()
This attribute is used for the left of the rect. |
short |
getPrimitiveType()
The type of the value as defined by the constants specified in CSSPrimitiveValue. |
Rect |
getRectValue()
This method is used to get the Rect value. |
CSSPrimitiveValue |
getRight()
This attribute is used for the right of the rect. |
CSSPrimitiveValue |
getTop()
This attribute is used for the top of the rect. |
Methods inherited from class org.apache.batik.css.value.AbstractImmutablePrimitiveValue |
getCssValueType |
Methods inherited from class org.apache.batik.css.value.AbstractImmutableValue |
getCounterValue, getFloatValue, getLength, getRGBColorValue, getStringValue, item |
Methods inherited from class java.lang.Object |
clone, 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 ImmutableRect(CSSPrimitiveValue t, CSSPrimitiveValue r, CSSPrimitiveValue b, CSSPrimitiveValue l)
Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.public ImmutableValue createReadOnlyCopy()
public java.lang.String getCssText()
public Rect getRectValue() throws DOMException
DOMException
is raised.
Modification to the corresponding style property can be achieved using
the Rect
interface.getRectValue
in class AbstractImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
value. (e.g. this is not CSS_RECT
).public short getPrimitiveType()
getPrimitiveType
in class AbstractImmutablePrimitiveValue
public CSSPrimitiveValue getTop()
getTop
in interface Rect
public CSSPrimitiveValue getRight()
getRight
in interface Rect
public CSSPrimitiveValue getBottom()
getBottom
in interface Rect
public CSSPrimitiveValue getLeft()
getLeft
in interface Rect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |