org.apache.batik.dom.svg
Class SVGOMAnimatedLengthList.AnimSVGLengthList

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGList
      extended by org.apache.batik.dom.svg.AbstractSVGLengthList
          extended by org.apache.batik.dom.svg.SVGOMAnimatedLengthList.AnimSVGLengthList
All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
Enclosing class:
SVGOMAnimatedLengthList

protected class SVGOMAnimatedLengthList.AnimSVGLengthList
extends AbstractSVGLengthList

SVGLengthList implementation for the animated length list value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGLengthList
AbstractSVGLengthList.LengthListBuilder, AbstractSVGLengthList.SVGLengthItem
 
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.AbstractSVGLengthList
direction, SVG_LENGTH_LIST_SEPARATOR
 
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
 
Constructor Summary
SVGOMAnimatedLengthList.AnimSVGLengthList()
          Creates a new AnimSVGLengthList.
 
Method Summary
 org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem)
          DOM: Implements SVGLengthList.appendItem(SVGLength).
 void clear()
          DOM: Implements SVGLengthList.clear().
protected  DOMException createDOMException(short type, String key, Object[] args)
          Create a DOMException.
protected  org.w3c.dom.svg.SVGException createSVGException(short type, String key, Object[] args)
          Create a SVGException.
protected  Element getElement()
          Returns the element owning this SVGLengthList.
 org.w3c.dom.svg.SVGLength getItem(int index)
          DOM: Implements SVGLengthList.getItem(int).
 int getNumberOfItems()
          DOM: Implements SVGLengthList.getNumberOfItems().
protected  String getValueAsString()
          Returns the value of the DOM attribute containing the point list.
 org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem)
          DOM: Implements SVGLengthList.initialize(SVGLength).
 org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index)
          DOM: Implements SVGLengthList.insertItemBefore(SVGLength, int).
 org.w3c.dom.svg.SVGLength removeItem(int index)
          DOM: Implements SVGLengthList.removeItem(int).
 org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index)
          DOM: Implements SVGLengthList.replaceItem(SVGLength, 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(short[] types, 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.AbstractSVGLengthList
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

SVGOMAnimatedLengthList.AnimSVGLengthList

public SVGOMAnimatedLengthList.AnimSVGLengthList()
Creates a new AnimSVGLengthList.

Method Detail

createDOMException

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

Specified by:
createDOMException in class AbstractSVGList

createSVGException

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

Specified by:
createSVGException in class AbstractSVGLengthList
Returns:
SVGException

getElement

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

Specified by:
getElement in class AbstractSVGLengthList

getNumberOfItems

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

Specified by:
getNumberOfItems in interface org.w3c.dom.svg.SVGLengthList
Overrides:
getNumberOfItems in class AbstractSVGList

getItem

public org.w3c.dom.svg.SVGLength getItem(int index)
                                  throws DOMException
DOM: Implements SVGLengthList.getItem(int).

Specified by:
getItem in interface org.w3c.dom.svg.SVGLengthList
Overrides:
getItem in class AbstractSVGLengthList
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 SVGLengthList.clear().

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

initialize

public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem)
                                     throws DOMException,
                                            org.w3c.dom.svg.SVGException
DOM: Implements SVGLengthList.initialize(SVGLength).

Specified by:
initialize in interface org.w3c.dom.svg.SVGLengthList
Overrides:
initialize in class AbstractSVGLengthList
Throws:
DOMException
org.w3c.dom.svg.SVGException

insertItemBefore

public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem,
                                                  int index)
                                           throws DOMException,
                                                  org.w3c.dom.svg.SVGException
DOM: Implements SVGLengthList.insertItemBefore(SVGLength, int).

Specified by:
insertItemBefore in interface org.w3c.dom.svg.SVGLengthList
Overrides:
insertItemBefore in class AbstractSVGLengthList
Throws:
DOMException
org.w3c.dom.svg.SVGException

replaceItem

public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem,
                                             int index)
                                      throws DOMException,
                                             org.w3c.dom.svg.SVGException
DOM: Implements SVGLengthList.replaceItem(SVGLength, int).

Specified by:
replaceItem in interface org.w3c.dom.svg.SVGLengthList
Overrides:
replaceItem in class AbstractSVGLengthList
Throws:
DOMException
org.w3c.dom.svg.SVGException

removeItem

public org.w3c.dom.svg.SVGLength removeItem(int index)
                                     throws DOMException
DOM: Implements SVGLengthList.removeItem(int).

Specified by:
removeItem in interface org.w3c.dom.svg.SVGLengthList
Overrides:
removeItem in class AbstractSVGLengthList
Throws:
DOMException

appendItem

public org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem)
                                     throws DOMException
DOM: Implements SVGLengthList.appendItem(SVGLength).

Specified by:
appendItem in interface org.w3c.dom.svg.SVGLengthList
Overrides:
appendItem in class AbstractSVGLengthList
Throws:
DOMException

setAnimatedValue

protected void setAnimatedValue(short[] types,
                                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.