org.apache.batik.dom.svg
Class SVGOMAnimatedNumberList.AnimSVGNumberList

java.lang.Object
  extended byorg.apache.batik.dom.svg.AbstractSVGList
      extended byorg.apache.batik.dom.svg.AbstractSVGNumberList
          extended byorg.apache.batik.dom.svg.SVGOMAnimatedNumberList.AnimSVGNumberList
All Implemented Interfaces:
SVGNumberList
Enclosing class:
SVGOMAnimatedNumberList

protected class SVGOMAnimatedNumberList.AnimSVGNumberList
extends AbstractSVGNumberList

SVGNumberList implementation for the animated number list value.


Nested Class Summary
 
Nested classes inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
AbstractSVGNumberList.NumberListBuilder, AbstractSVGNumberList.SVGNumberItem
 
Nested classes inherited from class org.apache.batik.dom.svg.AbstractSVGList
AbstractSVGList.ListBuilder
 
Field Summary
 
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
SVG_NUMBER_LIST_SEPARATOR
 
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
 
Constructor Summary
SVGOMAnimatedNumberList.AnimSVGNumberList()
          Creates a new AnimSVGNumberList.
 
Method Summary
 SVGNumber appendItem(SVGNumber newItem)
          DOM: Implements SVGNumberList.appendItem(SVGNumber).
 void clear()
          DOM: Implements SVGNumberList.clear().
protected  DOMException createDOMException(short type, String key, Object[] args)
          Create a DOMException.
protected  SVGException createSVGException(short type, String key, Object[] args)
          Create a SVGException.
protected  Element getElement()
          Returns the element owning this SVGNumberList.
 SVGNumber getItem(int index)
          DOM: Implements SVGNumberList.getItem(int).
 int getNumberOfItems()
          DOM: Implements SVGNumberList.getNumberOfItems().
protected  String getValueAsString()
          Returns the value of the DOM attribute containing the point list.
 SVGNumber initialize(SVGNumber newItem)
          DOM: Implements SVGNumberList.initialize(SVGNumber).
 SVGNumber insertItemBefore(SVGNumber newItem, int index)
          DOM: Implements SVGNumberList.insertItemBefore(SVGNumber, int).
 SVGNumber removeItem(int index)
          DOM: Implements SVGNumberList.removeItem(int).
 SVGNumber replaceItem(SVGNumber newItem, int index)
          DOM: Implements SVGNumberList.replaceItem(SVGNumber, int).
protected  void resetAttribute()
          Resets the value of the associated attribute.
protected  void resetAttribute(SVGItem item)
          Resets the value of the associated attribute.
protected  void revalidate()
          Initializes the list, if needed.
protected  void setAnimatedValue(float[] values)
          Sets the animated value.
protected  void setAttributeValue(String value)
          Sets the DOM attribute value containing the point list.
 
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
checkItemType, createSVGItem, doParse, getItemSeparator
 
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGOMAnimatedNumberList.AnimSVGNumberList

public SVGOMAnimatedNumberList.AnimSVGNumberList()
Creates a new AnimSVGNumberList.

Method Detail

createDOMException

protected DOMException createDOMException(short type,
                                          String key,
                                          Object[] args)
Create a DOMException.

Specified by:
createDOMException in class AbstractSVGList

createSVGException

protected SVGException createSVGException(short type,
                                          String key,
                                          Object[] args)
Create a SVGException.

Specified by:
createSVGException in class AbstractSVGNumberList

getElement

protected Element getElement()
Returns the element owning this SVGNumberList.

Specified by:
getElement in class AbstractSVGNumberList

getNumberOfItems

public int getNumberOfItems()
DOM: Implements SVGNumberList.getNumberOfItems().

Specified by:
getNumberOfItems in interface SVGNumberList
Overrides:
getNumberOfItems in class AbstractSVGList

getItem

public SVGNumber getItem(int index)
                                  throws DOMException
DOM: Implements SVGNumberList.getItem(int).

Specified by:
getItem in interface SVGNumberList
Overrides:
getItem in class AbstractSVGNumberList
Throws:
DOMException

getValueAsString

protected String getValueAsString()
Returns the value of the DOM attribute containing the point list.

Specified by:
getValueAsString in class AbstractSVGList

setAttributeValue

protected void setAttributeValue(String value)
Sets the DOM attribute value containing the point list.

Specified by:
setAttributeValue in class AbstractSVGList
Parameters:
value - the String representation of the list, or null if the list contains no items

clear

public void clear()
           throws DOMException
DOM: Implements SVGNumberList.clear().

Specified by:
clear in interface SVGNumberList
Overrides:
clear in class AbstractSVGList
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.

initialize

public SVGNumber initialize(SVGNumber newItem)
                                     throws DOMException,
                                            SVGException
DOM: Implements SVGNumberList.initialize(SVGNumber).

Specified by:
initialize in interface SVGNumberList
Overrides:
initialize in class AbstractSVGNumberList
Throws:
DOMException
SVGException

insertItemBefore

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

Specified by:
insertItemBefore in interface SVGNumberList
Overrides:
insertItemBefore in class AbstractSVGNumberList
Throws:
DOMException
SVGException

replaceItem

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

Specified by:
replaceItem in interface SVGNumberList
Overrides:
replaceItem in class AbstractSVGNumberList
Throws:
DOMException
SVGException

removeItem

public SVGNumber removeItem(int index)
                                     throws DOMException
DOM: Implements SVGNumberList.removeItem(int).

Specified by:
removeItem in interface SVGNumberList
Overrides:
removeItem in class AbstractSVGNumberList
Throws:
DOMException

appendItem

public SVGNumber appendItem(SVGNumber newItem)
                                     throws DOMException
DOM: Implements SVGNumberList.appendItem(SVGNumber).

Specified by:
appendItem in interface SVGNumberList
Overrides:
appendItem in class AbstractSVGNumberList
Throws:
DOMException

setAnimatedValue

protected void setAnimatedValue(float[] values)
Sets the animated value.


resetAttribute

protected void resetAttribute()
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.

Overrides:
resetAttribute in class AbstractSVGList

resetAttribute

protected void resetAttribute(SVGItem item)
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.

Overrides:
resetAttribute in class AbstractSVGList

revalidate

protected void revalidate()
Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.

Overrides:
revalidate in class AbstractSVGList


Copyright © 2009 Apache Software Foundation. All Rights Reserved.