Class CSSOMSVGColor

java.lang.Object
org.apache.batik.css.dom.CSSOMSVGColor
All Implemented Interfaces:
CSSValue, RGBColor, org.w3c.dom.svg.SVGColor, org.w3c.dom.svg.SVGICCColor, org.w3c.dom.svg.SVGNumberList
Direct Known Subclasses:
CSSOMSVGComputedStyle.ComputedCSSColorValue, CSSOMSVGPaint, CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, SVGStylableElement.PresentationAttributeColorValue

public class CSSOMSVGColor extends Object implements org.w3c.dom.svg.SVGColor, RGBColor, org.w3c.dom.svg.SVGICCColor, org.w3c.dom.svg.SVGNumberList
This class implements the SVGColor interface.
  • Field Details

  • Constructor Details

  • Method Details

    • setModificationHandler

      public void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
      Sets the modification handler of this value.
    • getCssText

      public String getCssText()
      DOM: Implements CSSValue.getCssText().
      Specified by:
      getCssText in interface CSSValue
    • setCssText

      public void setCssText(String cssText) throws DOMException
      Specified by:
      setCssText in interface CSSValue
      Throws:
      DOMException
    • getCssValueType

      public short getCssValueType()
      Specified by:
      getCssValueType in interface CSSValue
    • getColorType

      public short getColorType()
      DOM: Implements SVGColor.getColorType().
      Specified by:
      getColorType in interface org.w3c.dom.svg.SVGColor
    • getRGBColor

      public RGBColor getRGBColor()
      DOM: Implements SVGColor.getRGBColor().
      Specified by:
      getRGBColor in interface org.w3c.dom.svg.SVGColor
    • getRgbColor

      public RGBColor getRgbColor()
      Returns the RGBColor value for this SVGColor. For the SVG 1.1 ECMAScript binding.
    • setRGBColor

      public void setRGBColor(String color)
      DOM: Implements SVGColor.setRGBColor(String).
      Specified by:
      setRGBColor in interface org.w3c.dom.svg.SVGColor
    • getICCColor

      public org.w3c.dom.svg.SVGICCColor getICCColor()
      DOM: Implements SVGColor.getICCColor().
      Specified by:
      getICCColor in interface org.w3c.dom.svg.SVGColor
    • getIccColor

      public org.w3c.dom.svg.SVGICCColor getIccColor()
      Returns the SVGICCColor value of this SVGColor. For the SVG 1.1 ECMAScript binding.
    • setRGBColorICCColor

      public void setRGBColorICCColor(String rgb, String icc)
      DOM: Implements SVGColor.setRGBColorICCColor(String,String).
      Specified by:
      setRGBColorICCColor in interface org.w3c.dom.svg.SVGColor
    • setColor

      public void setColor(short type, String rgb, String icc)
      DOM: Implements SVGColor.setColor(short,String,String).
      Specified by:
      setColor in interface org.w3c.dom.svg.SVGColor
    • getRed

      public CSSPrimitiveValue getRed()
      DOM: Implements RGBColor.getRed().
      Specified by:
      getRed in interface RGBColor
    • getGreen

      public CSSPrimitiveValue getGreen()
      DOM: Implements RGBColor.getGreen().
      Specified by:
      getGreen in interface RGBColor
    • getBlue

      public CSSPrimitiveValue getBlue()
      DOM: Implements RGBColor.getBlue().
      Specified by:
      getBlue in interface RGBColor
    • getColorProfile

      public String getColorProfile()
      DOM: Implements SVGICCColor.getColorProfile().
      Specified by:
      getColorProfile in interface org.w3c.dom.svg.SVGICCColor
    • setColorProfile

      public void setColorProfile(String colorProfile) throws DOMException
      DOM: Implements SVGICCColor.setColorProfile(String).
      Specified by:
      setColorProfile in interface org.w3c.dom.svg.SVGICCColor
      Throws:
      DOMException
    • getColors

      public org.w3c.dom.svg.SVGNumberList getColors()
      DOM: Implements SVGICCColor.getColors().
      Specified by:
      getColors in interface org.w3c.dom.svg.SVGICCColor
    • getNumberOfItems

      public int getNumberOfItems()
      DOM: Implements SVGNumberList.getNumberOfItems().
      Specified by:
      getNumberOfItems in interface org.w3c.dom.svg.SVGNumberList
    • clear

      public void clear() throws DOMException
      DOM: Implements SVGNumberList.clear().
      Specified by:
      clear in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • initialize

      public org.w3c.dom.svg.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws DOMException
      DOM: Implements SVGNumberList.initialize(SVGNumber).
      Specified by:
      initialize in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • getItem

      public org.w3c.dom.svg.SVGNumber getItem(int index) throws DOMException
      DOM: Implements SVGNumberList.getItem(int).
      Specified by:
      getItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • insertItemBefore

      public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException
      DOM: Implements SVGNumberList.insertItemBefore(SVGNumber,int).
      Specified by:
      insertItemBefore in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • replaceItem

      public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException
      DOM: Implements SVGNumberList.replaceItem(SVGNumber,int).
      Specified by:
      replaceItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • removeItem

      public org.w3c.dom.svg.SVGNumber removeItem(int index) throws DOMException
      DOM: Implements SVGNumberList.removeItem(int).
      Specified by:
      removeItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException
    • appendItem

      public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem) throws DOMException
      DOM: Implements SVGNumberList.appendItem(SVGNumber).
      Specified by:
      appendItem in interface org.w3c.dom.svg.SVGNumberList
      Throws:
      DOMException