org.apache.batik.dom.svg

Class SVGOMAnimatedPoints.AnimSVGPointList

protected class SVGOMAnimatedPoints.AnimSVGPointList extends AbstractSVGPointList

{@link SVGPointList} implementation for the animated point list value.
Constructor Summary
AnimSVGPointList()
Creates a new AnimSVGPointList.
Method Summary
SVGPointappendItem(SVGPoint newItem)
DOM: Implements {@link SVGPointList#appendItem(SVGPoint)}.
voidclear()
DOM: Implements {@link SVGPointList#clear()}.
protected DOMExceptioncreateDOMException(short type, String key, Object[] args)
Create a DOMException.
protected SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create a SVGException.
SVGPointgetItem(int index)
DOM: Implements {@link SVGPointList#getItem(int)}.
intgetNumberOfItems()
DOM: Implements {@link SVGPointList#getNumberOfItems()}.
protected StringgetValueAsString()
Returns the value of the DOM attribute containing the point list.
SVGPointinitialize(SVGPoint newItem)
DOM: Implements {@link SVGPointList#initialize(SVGPoint)}.
SVGPointinsertItemBefore(SVGPoint newItem, int index)
DOM: Implements {@link SVGPointList#insertItemBefore(SVGPoint, int)}.
SVGPointremoveItem(int index)
DOM: Implements {@link SVGPointList#removeItem(int)}.
SVGPointreplaceItem(SVGPoint newItem, int index)
DOM: Implements {@link SVGPointList#replaceItem(SVGPoint, int)}.
protected voidresetAttribute()
Resets the value of the associated attribute.
protected voidresetAttribute(SVGItem item)
Resets the value of the associated attribute.
protected voidrevalidate()
Initializes the list, if needed.
protected voidsetAnimatedValue(float[] pts)
Sets the animated value.
protected voidsetAttributeValue(String value)
Sets the DOM attribute value containing the point list.

Constructor Detail

AnimSVGPointList

public AnimSVGPointList()
Creates a new AnimSVGPointList.

Method Detail

appendItem

public SVGPoint appendItem(SVGPoint newItem)
DOM: Implements {@link SVGPointList#appendItem(SVGPoint)}.

clear

public void clear()
DOM: Implements {@link SVGPointList#clear()}.

createDOMException

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

createSVGException

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

getItem

public SVGPoint getItem(int index)
DOM: Implements {@link SVGPointList#getItem(int)}.

getNumberOfItems

public int getNumberOfItems()
DOM: Implements {@link SVGPointList#getNumberOfItems()}.

getValueAsString

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

initialize

public SVGPoint initialize(SVGPoint newItem)
DOM: Implements {@link SVGPointList#initialize(SVGPoint)}.

insertItemBefore

public SVGPoint insertItemBefore(SVGPoint newItem, int index)
DOM: Implements {@link SVGPointList#insertItemBefore(SVGPoint, int)}.

removeItem

public SVGPoint removeItem(int index)
DOM: Implements {@link SVGPointList#removeItem(int)}.

replaceItem

public SVGPoint replaceItem(SVGPoint newItem, int index)
DOM: Implements {@link SVGPointList#replaceItem(SVGPoint, int)}.

resetAttribute

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

resetAttribute

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

revalidate

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

setAnimatedValue

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

setAttributeValue

protected void setAttributeValue(String value)
Sets the DOM attribute value containing the point list.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.