|
||||||||||
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
This class implements an immutable value.
Constructor Summary | |
AbstractImmutableValue()
|
Method Summary | |
Counter |
getCounterValue()
This method is used to get the Counter value. |
short |
getCssValueType()
A code defining the type of the value. |
float |
getFloatValue(short unitType)
A method to get the float value with a specified unit. |
int |
getLength()
The number of CSSValues in the list. |
short |
getPrimitiveType()
The type of the value. |
Rect |
getRectValue()
This method is used to get the Rect value. |
RGBColor |
getRGBColorValue()
This method is used to get the RGB color. |
java.lang.String |
getStringValue()
This method is used to get the string value. |
CSSValue |
item(int index)
Used to retrieve a CSS rule by ordinal index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.css.value.ImmutableValue |
createReadOnlyCopy, getCssText |
Constructor Detail |
public AbstractImmutableValue()
Method Detail |
public short getCssValueType()
getCssValueType
in interface ImmutableValue
public short getPrimitiveType()
getPrimitiveType
in interface ImmutableValue
public float getFloatValue(short unitType) throws DOMException
getFloatValue
in interface ImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the attached property doesn't support
the float value or the unit type.public java.lang.String getStringValue() throws DOMException
getStringValue
in interface ImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string
value.public Counter getCounterValue() throws DOMException
getCounterValue
in interface ImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a
Counter value (e.g. this is not CSS_COUNTER
).public Rect getRectValue() throws DOMException
getRectValue
in interface ImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect
value. (e.g. this is not CSS_RECT
).public RGBColor getRGBColorValue() throws DOMException
getRGBColorValue
in interface ImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the attached property can't return a
RGB color value (e.g. this is not CSS_RGBCOLOR
).public int getLength()
CSSValues
in the list. The range of valid
values of the indices is 0
to length-1
inclusive.getLength
in interface ImmutableValue
public CSSValue item(int index)
item
in interface ImmutableValue
index
position in the
CSSValueList
, or null
if that is not a
valid index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |