|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.dom.CSSOMSVGColor
This class implements the SVGColor
interface.
Inner Class Summary | |
protected class |
CSSOMSVGColor.AbstractComponent
To store a component. |
class |
CSSOMSVGColor.AbstractModificationHandler
Provides an abstract implementation of a ModificationHandler. |
protected class |
CSSOMSVGColor.BlueComponent
To represents a blue component. |
protected class |
CSSOMSVGColor.ColorNumber
To represent a SVGNumber which is part of a color list. |
protected class |
CSSOMSVGColor.FloatComponent
To store a Float component. |
protected class |
CSSOMSVGColor.GreenComponent
To represents a green component. |
static interface |
CSSOMSVGColor.ModificationHandler
To manage the modifications on a CSS value. |
protected class |
CSSOMSVGColor.RedComponent
To represents a red component. |
static interface |
CSSOMSVGColor.ValueProvider
To provides the actual value. |
Field Summary | |
protected CSSOMSVGColor.BlueComponent |
blueComponent
The blue component, if this value is a RGBColor. |
protected CSSOMSVGColor.GreenComponent |
greenComponent
The green component, if this value is a RGBColor. |
protected CSSOMSVGColor.ModificationHandler |
handler
The modifications handler. |
protected java.util.ArrayList |
iccColors
To store the ICC color list. |
protected CSSOMSVGColor.RedComponent |
redComponent
The red component, if this value is a RGBColor. |
protected CSSOMSVGColor.ValueProvider |
valueProvider
The associated value. |
Fields inherited from interface org.w3c.dom.svg.SVGColor |
SVG_COLORTYPE_CURRENTCOLOR, SVG_COLORTYPE_RGBCOLOR, SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, SVG_COLORTYPE_UNKNOWN |
Fields inherited from interface org.w3c.dom.css.CSSValue |
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
Constructor Summary | |
CSSOMSVGColor(CSSOMSVGColor.ValueProvider vp)
Creates a new CSSOMSVGColor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CSSOMSVGColor.ValueProvider valueProvider
protected CSSOMSVGColor.ModificationHandler handler
protected CSSOMSVGColor.RedComponent redComponent
protected CSSOMSVGColor.GreenComponent greenComponent
protected CSSOMSVGColor.BlueComponent blueComponent
protected java.util.ArrayList iccColors
Constructor Detail |
public CSSOMSVGColor(CSSOMSVGColor.ValueProvider vp)
Method Detail |
public void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
public java.lang.String getCssText()
CSSValue.getCssText()
.getCssText
in interface CSSValue
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 void setCssText(java.lang.String cssText) throws DOMException
org.w3c.dom.svg.CSSValue#setCssText(String)
.setCssText
in interface CSSValue
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 short getCssValueType()
org.w3c.dom.svg.CSSValue#getCssValueType()
.getCssValueType
in interface CSSValue
public short getColorType()
SVGColor.getColorType()
.getColorType
in interface SVGColor
public RGBColor getRGBColor()
SVGColor.getRGBColor()
.getRGBColor
in interface SVGColor
public void setRGBColor(java.lang.String color)
SVGColor.setRGBColor(String)
.setRGBColor
in interface SVGColor
public SVGICCColor getICCColor()
SVGColor.getICCColor()
.getICCColor
in interface SVGColor
public void setRGBColorICCColor(java.lang.String rgb, java.lang.String icc)
SVGColor.setRGBColorICCColor(String,String)
.setRGBColorICCColor
in interface SVGColor
public void setColor(short type, java.lang.String rgb, java.lang.String icc)
SVGColor.setColor(short,String,String)
.setColor
in interface SVGColor
public CSSPrimitiveValue getRed()
RGBColor.getRed()
.getRed
in interface RGBColor
public CSSPrimitiveValue getGreen()
RGBColor.getGreen()
.getGreen
in interface RGBColor
public CSSPrimitiveValue getBlue()
RGBColor.getBlue()
.getBlue
in interface RGBColor
public java.lang.String getColorProfile()
SVGICCColor.getColorProfile()
.getColorProfile
in interface SVGICCColor
public void setColorProfile(java.lang.String colorProfile) throws DOMException
SVGICCColor.setColorProfile(String)
.setColorProfile
in interface SVGICCColor
public SVGNumberList getColors()
SVGICCColor.getColors()
.getColors
in interface SVGICCColor
public int getNumberOfItems()
SVGNumberList.getNumberOfItems()
.getNumberOfItems
in interface SVGNumberList
public void clear() throws DOMException
SVGNumberList.clear()
.clear
in interface SVGNumberList
public SVGNumber initialize(SVGNumber newItem) throws DOMException
SVGNumberList.initialize(SVGNumber)
.initialize
in interface SVGNumberList
public SVGNumber getItem(int index) throws DOMException
SVGNumberList.getItem(int)
.getItem
in interface SVGNumberList
public SVGNumber insertItemBefore(SVGNumber newItem, int index) throws DOMException
SVGNumberList.insertItemBefore(SVGNumber,int)
.insertItemBefore
in interface SVGNumberList
public SVGNumber replaceItem(SVGNumber newItem, int index) throws DOMException
SVGNumberList.replaceItem(SVGNumber,int)
.replaceItem
in interface SVGNumberList
public SVGNumber removeItem(int index) throws DOMException
SVGNumberList.removeItem(int)
.removeItem
in interface SVGNumberList
public SVGNumber appendItem(SVGNumber newItem) throws DOMException
SVGNumberList.appendItem(SVGNumber)
.appendItem
in interface SVGNumberList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |