org.apache.batik.dom.svg
Class SVGOMNumberList

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGOMNumberList
All Implemented Interfaces:
LiveAttributeValue, ModificationHandler, SVGNumberList

public class SVGOMNumberList
extends java.lang.Object
implements SVGNumberList, LiveAttributeValue, ModificationHandler

This class implements the SVGNumberList interface.


Field Summary
protected  boolean internalChange
          Whether or not the current change is due to an internal change.
protected  SVGList list
          The implementation of the list.
protected  ModificationHandler modificationHandler
          The modification handler.
 
Constructor Summary
SVGOMNumberList()
           
 
Method Summary
 SVGNumber appendItem(SVGNumber newItem)
          DOM: Implements SVGNumberList.appendItem(SVGNumber).
 void clear()
          DOM: Implements SVGNumberList.getNumberOfItems().
 SVGNumber getItem(int index)
          DOM: Implements SVGNumberList.getItem(int).
 int getNumberOfItems()
          DOM: Implements SVGNumberList.getNumberOfItems().
 java.lang.Object getObject(java.lang.Object key)
          Implements ModificationHandler.getObject(Object).
 java.lang.String getStringRepresentation()
          Returns the string representation of the list.
 SVGNumber initialize(SVGNumber newItem)
          DOM: Implements SVGNumberList.initialize(SVGNumber).
 SVGNumber insertItemBefore(SVGNumber newItem, int index)
          DOM: Implements SVGNumberList.insertItemBefore(SVGNumber,int).
 void parseValue(java.lang.String val)
          Parses the given value and initializes the list.
protected  void parseValue(java.lang.String oldVal, java.lang.String newVal)
          Parses the old and new values and modifies the list.
 SVGNumber removeItem(int index)
          DOM: Implements SVGNumberList.removeItem(int).
 SVGNumber replaceItem(SVGNumber newItem, int index)
          DOM: Implements SVGNumberList.replaceItem(SVGNumber,int).
 void setModificationHandler(ModificationHandler mh)
          Sets the modification handler.
 void valueChanged(Attr oldValue, Attr newValue)
          Called when the string representation of the value as been modified.
 void valueChanged(java.lang.Object object, java.lang.String value)
          Implements ModificationHandler.valueChanged(Object,String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected SVGList list
The implementation of the list.

modificationHandler

protected ModificationHandler modificationHandler
The modification handler.

internalChange

protected boolean internalChange
Whether or not the current change is due to an internal change.
Constructor Detail

SVGOMNumberList

public SVGOMNumberList()
Method Detail

setModificationHandler

public void setModificationHandler(ModificationHandler mh)
Sets the modification handler.

getNumberOfItems

public int getNumberOfItems()
DOM: Implements SVGNumberList.getNumberOfItems().
Specified by:
getNumberOfItems in interface SVGNumberList

clear

public void clear()
           throws DOMException
DOM: Implements SVGNumberList.getNumberOfItems().
Specified by:
clear in interface SVGNumberList

initialize

public SVGNumber initialize(SVGNumber newItem)
                     throws DOMException,
                            SVGException
DOM: Implements SVGNumberList.initialize(SVGNumber).
Specified by:
initialize in interface SVGNumberList

getItem

public SVGNumber getItem(int index)
                  throws DOMException
DOM: Implements SVGNumberList.getItem(int).
Specified by:
getItem in interface SVGNumberList

insertItemBefore

public SVGNumber insertItemBefore(SVGNumber newItem,
                                  int index)
                           throws DOMException,
                                  SVGException
DOM: Implements SVGNumberList.insertItemBefore(SVGNumber,int).
Specified by:
insertItemBefore in interface SVGNumberList

replaceItem

public SVGNumber replaceItem(SVGNumber newItem,
                             int index)
                      throws DOMException,
                             SVGException
DOM: Implements SVGNumberList.replaceItem(SVGNumber,int).
Specified by:
replaceItem in interface SVGNumberList

removeItem

public SVGNumber removeItem(int index)
                     throws DOMException
DOM: Implements SVGNumberList.removeItem(int).
Specified by:
removeItem in interface SVGNumberList

appendItem

public SVGNumber appendItem(SVGNumber newItem)
                     throws DOMException,
                            SVGException
DOM: Implements SVGNumberList.appendItem(SVGNumber).
Specified by:
appendItem in interface SVGNumberList

getStringRepresentation

public java.lang.String getStringRepresentation()
Returns the string representation of the list.

valueChanged

public void valueChanged(Attr oldValue,
                         Attr newValue)
Called when the string representation of the value as been modified.
Specified by:
valueChanged in interface LiveAttributeValue
Parameters:
oldValue - The old Attr node.
newValue - The new Attr node.

parseValue

public void parseValue(java.lang.String val)
Parses the given value and initializes the list.

parseValue

protected void parseValue(java.lang.String oldVal,
                          java.lang.String newVal)
Parses the old and new values and modifies the list.

valueChanged

public void valueChanged(java.lang.Object object,
                         java.lang.String value)
Implements ModificationHandler.valueChanged(Object,String).
Specified by:
valueChanged in interface ModificationHandler
Following copied from interface: org.apache.batik.dom.svg.ModificationHandler
Parameters:
object - The modified object.
value - The new value.

getObject

public java.lang.Object getObject(java.lang.Object key)
Implements ModificationHandler.getObject(Object).
Specified by:
getObject in interface ModificationHandler
Following copied from interface: org.apache.batik.dom.svg.ModificationHandler
Parameters:
key - The key to use to retreive the object.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.