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

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGList
      extended by org.apache.batik.dom.svg.AbstractSVGNumberList
          extended by org.apache.batik.dom.svg.SVGOMAnimatedNumberList.AnimSVGNumberList
Enclosing class:
SVGOMAnimatedNumberList

protected class SVGOMAnimatedNumberList.AnimSVGNumberList
extends AbstractSVGNumberList

SVGOMAnimatedNumberList.BaseSVGNumberList implementation for the animated number list value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
AbstractSVGNumberList.NumberListBuilder, AbstractSVGNumberList.SVGNumberItem
 
Nested classes/interfaces 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 AbstractSVGNumberList.appendItem(SVGNumber).
 void clear()
          DOM: Implements AbstractSVGList.clear().
protected  org.w3c.dom.DOMException createDOMException(short type, java.lang.String key, java.lang.Object[] args)
          Create a DOMException.
protected  SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
          Create a SVGException.
protected  org.w3c.dom.Element getElement()
          Returns the element owning this SVGNumberList.
 SVGNumber getItem(int index)
          DOM: Implements AbstractSVGNumberList.getItem(int).
 int getNumberOfItems()
          DOM: Implements AbstractSVGList.getNumberOfItems().
protected  java.lang.String getValueAsString()
          Returns the value of the DOM attribute containing the point list.
 SVGNumber initialize(SVGNumber newItem)
          DOM: Implements AbstractSVGNumberList.initialize(SVGNumber).
 SVGNumber insertItemBefore(SVGNumber newItem, int index)
          DOM: Implements AbstractSVGNumberList.insertItemBefore(SVGNumber, int).
 SVGNumber removeItem(int index)
          DOM: Implements AbstractSVGNumberList.removeItem(int).
 SVGNumber replaceItem(SVGNumber newItem, int index)
          DOM: Implements AbstractSVGNumberList.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(java.lang.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 org.w3c.dom.DOMException createDOMException(short type,
                                                      java.lang.String key,
                                                      java.lang.Object[] args)
Create a DOMException.

Specified by:
createDOMException in class AbstractSVGList

createSVGException

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

Specified by:
createSVGException in class AbstractSVGNumberList

getElement

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

Specified by:
getElement in class AbstractSVGNumberList

getNumberOfItems

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

Overrides:
getNumberOfItems in class AbstractSVGList

getItem

public SVGNumber getItem(int index)
                  throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGNumberList.getItem(int).

Overrides:
getItem in class AbstractSVGNumberList
Throws:
org.w3c.dom.DOMException

getValueAsString

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

Specified by:
getValueAsString in class AbstractSVGList

setAttributeValue

protected void setAttributeValue(java.lang.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 org.w3c.dom.DOMException
DOM: Implements AbstractSVGList.clear().

Overrides:
clear in class AbstractSVGList
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.

initialize

public SVGNumber initialize(SVGNumber newItem)
                     throws org.w3c.dom.DOMException,
                            SVGException
DOM: Implements AbstractSVGNumberList.initialize(SVGNumber).

Overrides:
initialize in class AbstractSVGNumberList
Throws:
org.w3c.dom.DOMException
SVGException

insertItemBefore

public SVGNumber insertItemBefore(SVGNumber newItem,
                                  int index)
                           throws org.w3c.dom.DOMException,
                                  SVGException
DOM: Implements AbstractSVGNumberList.insertItemBefore(SVGNumber, int).

Overrides:
insertItemBefore in class AbstractSVGNumberList
Throws:
org.w3c.dom.DOMException
SVGException

replaceItem

public SVGNumber replaceItem(SVGNumber newItem,
                             int index)
                      throws org.w3c.dom.DOMException,
                             SVGException
DOM: Implements AbstractSVGNumberList.replaceItem(SVGNumber, int).

Overrides:
replaceItem in class AbstractSVGNumberList
Throws:
org.w3c.dom.DOMException
SVGException

removeItem

public SVGNumber removeItem(int index)
                     throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGNumberList.removeItem(int).

Overrides:
removeItem in class AbstractSVGNumberList
Throws:
org.w3c.dom.DOMException

appendItem

public SVGNumber appendItem(SVGNumber newItem)
                     throws org.w3c.dom.DOMException
DOM: Implements AbstractSVGNumberList.appendItem(SVGNumber).

Overrides:
appendItem in class AbstractSVGNumberList
Throws:
org.w3c.dom.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 ? 2008 Apache Software Foundation. All Rights Reserved.