public class CSSOMSVGColor extends java.lang.Object implements org.w3c.dom.svg.SVGColor, RGBColor, org.w3c.dom.svg.SVGICCColor, org.w3c.dom.svg.SVGNumberList
SVGColor
interface.Modifier and Type | Class and Description |
---|---|
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 provide the actual value.
|
Modifier and Type | Field and Description |
---|---|
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.
|
SVG_COLORTYPE_CURRENTCOLOR, SVG_COLORTYPE_RGBCOLOR, SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, SVG_COLORTYPE_UNKNOWN
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
Constructor and Description |
---|
CSSOMSVGColor(CSSOMSVGColor.ValueProvider vp)
Creates a new CSSOMSVGColor.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.svg.SVGNumber |
appendItem(org.w3c.dom.svg.SVGNumber newItem)
DOM: Implements
SVGNumberList.appendItem(SVGNumber) . |
void |
clear()
DOM: Implements
SVGNumberList.clear() . |
CSSPrimitiveValue |
getBlue()
DOM: Implements
RGBColor.getBlue() . |
java.lang.String |
getColorProfile()
DOM: Implements
SVGICCColor.getColorProfile() . |
org.w3c.dom.svg.SVGNumberList |
getColors()
DOM: Implements
SVGICCColor.getColors() . |
short |
getColorType()
DOM: Implements
SVGColor.getColorType() . |
java.lang.String |
getCssText()
DOM: Implements
CSSValue.getCssText() . |
short |
getCssValueType()
DOM: Implements
CSSValue.getCssValueType() . |
CSSPrimitiveValue |
getGreen()
DOM: Implements
RGBColor.getGreen() . |
org.w3c.dom.svg.SVGICCColor |
getIccColor()
Returns the SVGICCColor value of this SVGColor.
|
org.w3c.dom.svg.SVGICCColor |
getICCColor()
DOM: Implements
SVGColor.getICCColor() . |
org.w3c.dom.svg.SVGNumber |
getItem(int index)
DOM: Implements
SVGNumberList.getItem(int) . |
int |
getNumberOfItems()
DOM: Implements
SVGNumberList.getNumberOfItems() . |
CSSPrimitiveValue |
getRed()
DOM: Implements
RGBColor.getRed() . |
RGBColor |
getRgbColor()
Returns the RGBColor value for this SVGColor.
|
RGBColor |
getRGBColor()
DOM: Implements
SVGColor.getRGBColor() . |
org.w3c.dom.svg.SVGNumber |
initialize(org.w3c.dom.svg.SVGNumber newItem)
DOM: Implements
SVGNumberList.initialize(SVGNumber) . |
org.w3c.dom.svg.SVGNumber |
insertItemBefore(org.w3c.dom.svg.SVGNumber newItem,
int index)
DOM: Implements
SVGNumberList.insertItemBefore(SVGNumber,int) . |
org.w3c.dom.svg.SVGNumber |
removeItem(int index)
DOM: Implements
SVGNumberList.removeItem(int) . |
org.w3c.dom.svg.SVGNumber |
replaceItem(org.w3c.dom.svg.SVGNumber newItem,
int index)
DOM: Implements
SVGNumberList.replaceItem(SVGNumber,int) . |
void |
setColor(short type,
java.lang.String rgb,
java.lang.String icc)
DOM: Implements
SVGColor.setColor(short,String,String) . |
void |
setColorProfile(java.lang.String colorProfile)
DOM: Implements
SVGICCColor.setColorProfile(String) . |
void |
setCssText(java.lang.String cssText)
DOM: Implements
CSSValue.setCssText(String) . |
void |
setModificationHandler(CSSOMSVGColor.ModificationHandler h)
Sets the modification handler of this value.
|
void |
setRGBColor(java.lang.String color)
DOM: Implements
SVGColor.setRGBColor(String) . |
void |
setRGBColorICCColor(java.lang.String rgb,
java.lang.String icc)
DOM: Implements
SVGColor.setRGBColorICCColor(String,String) . |
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
public CSSOMSVGColor(CSSOMSVGColor.ValueProvider vp)
public void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
public java.lang.String getCssText()
CSSValue.getCssText()
.getCssText
in interface CSSValue
public void setCssText(java.lang.String cssText) throws DOMException
CSSValue.setCssText(String)
.setCssText
in interface CSSValue
DOMException
public short getCssValueType()
CSSValue.getCssValueType()
.getCssValueType
in interface CSSValue
public short getColorType()
SVGColor.getColorType()
.getColorType
in interface org.w3c.dom.svg.SVGColor
public RGBColor getRGBColor()
SVGColor.getRGBColor()
.getRGBColor
in interface org.w3c.dom.svg.SVGColor
public RGBColor getRgbColor()
public void setRGBColor(java.lang.String color)
SVGColor.setRGBColor(String)
.setRGBColor
in interface org.w3c.dom.svg.SVGColor
public org.w3c.dom.svg.SVGICCColor getICCColor()
SVGColor.getICCColor()
.getICCColor
in interface org.w3c.dom.svg.SVGColor
public org.w3c.dom.svg.SVGICCColor getIccColor()
public void setRGBColorICCColor(java.lang.String rgb, java.lang.String icc)
SVGColor.setRGBColorICCColor(String,String)
.setRGBColorICCColor
in interface org.w3c.dom.svg.SVGColor
public void setColor(short type, java.lang.String rgb, java.lang.String icc)
SVGColor.setColor(short,String,String)
.setColor
in interface org.w3c.dom.svg.SVGColor
public CSSPrimitiveValue getRed()
RGBColor.getRed()
.public CSSPrimitiveValue getGreen()
RGBColor.getGreen()
.public CSSPrimitiveValue getBlue()
RGBColor.getBlue()
.public java.lang.String getColorProfile()
SVGICCColor.getColorProfile()
.getColorProfile
in interface org.w3c.dom.svg.SVGICCColor
public void setColorProfile(java.lang.String colorProfile) throws DOMException
SVGICCColor.setColorProfile(String)
.setColorProfile
in interface org.w3c.dom.svg.SVGICCColor
DOMException
public org.w3c.dom.svg.SVGNumberList getColors()
SVGICCColor.getColors()
.getColors
in interface org.w3c.dom.svg.SVGICCColor
public int getNumberOfItems()
SVGNumberList.getNumberOfItems()
.getNumberOfItems
in interface org.w3c.dom.svg.SVGNumberList
public void clear() throws DOMException
SVGNumberList.clear()
.clear
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws DOMException
SVGNumberList.initialize(SVGNumber)
.initialize
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber getItem(int index) throws DOMException
SVGNumberList.getItem(int)
.getItem
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException
SVGNumberList.insertItemBefore(SVGNumber,int)
.insertItemBefore
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException
SVGNumberList.replaceItem(SVGNumber,int)
.replaceItem
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber removeItem(int index) throws DOMException
SVGNumberList.removeItem(int)
.removeItem
in interface org.w3c.dom.svg.SVGNumberList
DOMException
public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem) throws DOMException
SVGNumberList.appendItem(SVGNumber)
.appendItem
in interface org.w3c.dom.svg.SVGNumberList
DOMException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.