org.apache.batik.css.dom
Class CSSOMSVGPaint.AbstractModificationHandler

java.lang.Object
  extended by org.apache.batik.css.dom.CSSOMSVGPaint.AbstractModificationHandler
All Implemented Interfaces:
CSSOMSVGColor.ModificationHandler, CSSOMSVGPaint.PaintModificationHandler
Enclosing class:
CSSOMSVGPaint

public abstract class CSSOMSVGPaint.AbstractModificationHandler
extends Object
implements CSSOMSVGPaint.PaintModificationHandler

Provides an abstract implementation of a PaintModificationHandler.


Constructor Summary
CSSOMSVGPaint.AbstractModificationHandler()
           
 
Method Summary
 void blueFloatValueChanged(short unit, float value)
          Called when the blue float value has changed.
 void blueTextChanged(String text)
          Called when the blue value text has changed.
 void colorAppend(float f)
          Called when the ICC color has been append.
 void colorChanged(short type, String rgb, String icc)
          Called when the SVGColor has changed.
 void colorInsertedBefore(float f, int idx)
          Called when the ICC color has been inserted.
 void colorProfileChanged(String cp)
          Called when the ICC color profile has changed.
 void colorRemoved(int idx)
          Called when the ICC color has been removed.
 void colorReplaced(float f, int idx)
          Called when the ICC color has been replaced.
 void colorsCleared()
          Called when the ICC colors has changed.
 void colorsInitialized(float f)
          Called when the ICC colors has been initialized.
protected abstract  Value getValue()
          Returns the associated value.
 void greenFloatValueChanged(short unit, float value)
          Called when the green float value has changed.
 void greenTextChanged(String text)
          Called when the green value text has changed.
 void paintChanged(short type, String uri, String rgb, String icc)
          Called when the paint value has beem modified.
 void redFloatValueChanged(short unit, float value)
          Called when the red float value has changed.
 void redTextChanged(String text)
          Called when the red value text has changed.
 void rgbColorChanged(String text)
          Called when the RGBColor text has changed.
 void rgbColorICCColorChanged(String rgb, String icc)
          Called when the RGBColor and the ICCColor text has changed.
 void uriChanged(String uri)
          Called when the URI has been modified.
 
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.dom.CSSOMSVGColor.ModificationHandler
textChanged
 

Constructor Detail

CSSOMSVGPaint.AbstractModificationHandler

public CSSOMSVGPaint.AbstractModificationHandler()
Method Detail

getValue

protected abstract Value getValue()
Returns the associated value.


redTextChanged

public void redTextChanged(String text)
                    throws DOMException
Called when the red value text has changed.

Specified by:
redTextChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

redFloatValueChanged

public void redFloatValueChanged(short unit,
                                 float value)
                          throws DOMException
Called when the red float value has changed.

Specified by:
redFloatValueChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

greenTextChanged

public void greenTextChanged(String text)
                      throws DOMException
Called when the green value text has changed.

Specified by:
greenTextChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

greenFloatValueChanged

public void greenFloatValueChanged(short unit,
                                   float value)
                            throws DOMException
Called when the green float value has changed.

Specified by:
greenFloatValueChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

blueTextChanged

public void blueTextChanged(String text)
                     throws DOMException
Called when the blue value text has changed.

Specified by:
blueTextChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

blueFloatValueChanged

public void blueFloatValueChanged(short unit,
                                  float value)
                           throws DOMException
Called when the blue float value has changed.

Specified by:
blueFloatValueChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

rgbColorChanged

public void rgbColorChanged(String text)
                     throws DOMException
Called when the RGBColor text has changed.

Specified by:
rgbColorChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

rgbColorICCColorChanged

public void rgbColorICCColorChanged(String rgb,
                                    String icc)
                             throws DOMException
Called when the RGBColor and the ICCColor text has changed.

Specified by:
rgbColorICCColorChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorChanged

public void colorChanged(short type,
                         String rgb,
                         String icc)
                  throws DOMException
Called when the SVGColor has changed.

Specified by:
colorChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorProfileChanged

public void colorProfileChanged(String cp)
                         throws DOMException
Called when the ICC color profile has changed.

Specified by:
colorProfileChanged in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorsCleared

public void colorsCleared()
                   throws DOMException
Called when the ICC colors has changed.

Specified by:
colorsCleared in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorsInitialized

public void colorsInitialized(float f)
                       throws DOMException
Called when the ICC colors has been initialized.

Specified by:
colorsInitialized in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorInsertedBefore

public void colorInsertedBefore(float f,
                                int idx)
                         throws DOMException
Called when the ICC color has been inserted.

Specified by:
colorInsertedBefore in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorReplaced

public void colorReplaced(float f,
                          int idx)
                   throws DOMException
Called when the ICC color has been replaced.

Specified by:
colorReplaced in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorRemoved

public void colorRemoved(int idx)
                  throws DOMException
Called when the ICC color has been removed.

Specified by:
colorRemoved in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

colorAppend

public void colorAppend(float f)
                 throws DOMException
Called when the ICC color has been append.

Specified by:
colorAppend in interface CSSOMSVGColor.ModificationHandler
Throws:
DOMException

uriChanged

public void uriChanged(String uri)
Called when the URI has been modified.

Specified by:
uriChanged in interface CSSOMSVGPaint.PaintModificationHandler

paintChanged

public void paintChanged(short type,
                         String uri,
                         String rgb,
                         String icc)
Called when the paint value has beem modified.

Specified by:
paintChanged in interface CSSOMSVGPaint.PaintModificationHandler


Copyright © 2008 Apache Software Foundation. All Rights Reserved.