|
||||||||||
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.ImmutableRGBColor
This class represents immutable CSS colors.
Field Summary | |
protected CSSPrimitiveValue |
blue
The blue value |
protected CSSPrimitiveValue |
green
The green value |
protected CSSPrimitiveValue |
red
The red value |
Constructor Summary | |
ImmutableRGBColor(CSSPrimitiveValue r,
CSSPrimitiveValue g,
CSSPrimitiveValue b)
Creates a new color. |
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 |
getBlue()
This attribute is used for the blue value of the RGB color. |
java.lang.String |
getCssText()
A string representation of the current value. |
CSSPrimitiveValue |
getGreen()
This attribute is used for the green value of the RGB color. |
short |
getPrimitiveType()
The type of the value as defined by the constants specified in CSSPrimitiveValue. |
CSSPrimitiveValue |
getRed()
This attribute is used for the red value of the RGB color. |
RGBColor |
getRGBColorValue()
Returns this value. |
Methods inherited from class org.apache.batik.css.value.AbstractImmutablePrimitiveValue |
getCssValueType |
Methods inherited from class org.apache.batik.css.value.AbstractImmutableValue |
getCounterValue, getFloatValue, getLength, getRectValue, getStringValue, item |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CSSPrimitiveValue red
protected CSSPrimitiveValue green
protected CSSPrimitiveValue blue
Constructor Detail |
public ImmutableRGBColor(CSSPrimitiveValue r, CSSPrimitiveValue g, CSSPrimitiveValue b)
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 short getPrimitiveType()
getPrimitiveType
in class AbstractImmutablePrimitiveValue
public CSSPrimitiveValue getRed()
getRed
in interface RGBColor
public CSSPrimitiveValue getGreen()
getGreen
in interface RGBColor
public CSSPrimitiveValue getBlue()
getBlue
in interface RGBColor
public RGBColor getRGBColorValue() throws DOMException
getRGBColorValue
in class AbstractImmutableValue
org.apache.batik.css.value.AbstractImmutableValue
DOMException
- INVALID_ACCESS_ERR: Raised if the attached property can't return a
RGB color value (e.g. this is not CSS_RGBCOLOR
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |