Package org.apache.batik.anim.dom
Class SVGOMAnimatedPoints.AnimSVGPointList
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGList
-
- org.apache.batik.dom.svg.AbstractSVGPointList
-
- org.apache.batik.anim.dom.SVGOMAnimatedPoints.AnimSVGPointList
-
- All Implemented Interfaces:
org.w3c.dom.svg.SVGPointList
- Enclosing class:
- SVGOMAnimatedPoints
protected class SVGOMAnimatedPoints.AnimSVGPointList extends AbstractSVGPointList
SVGPointListimplementation for the animated point list value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGPointList
AbstractSVGPointList.PointsListBuilder
-
-
Field Summary
-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGPointList
SVG_POINT_LIST_SEPARATOR
-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Constructor Description AnimSVGPointList()Creates a new AnimSVGPointList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGPointappendItem(org.w3c.dom.svg.SVGPoint newItem)DOM: ImplementsSVGPointList.appendItem(SVGPoint).voidclear()DOM: ImplementsSVGPointList.clear().protected org.w3c.dom.DOMExceptioncreateDOMException(short type, java.lang.String key, java.lang.Object[] args)Create a DOMException.protected org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, java.lang.String key, java.lang.Object[] args)Create a SVGException.org.w3c.dom.svg.SVGPointgetItem(int index)DOM: ImplementsSVGPointList.getItem(int).intgetNumberOfItems()DOM: ImplementsSVGPointList.getNumberOfItems().protected java.lang.StringgetValueAsString()Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGPointinitialize(org.w3c.dom.svg.SVGPoint newItem)DOM: ImplementsSVGPointList.initialize(SVGPoint).org.w3c.dom.svg.SVGPointinsertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index)DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint, int).org.w3c.dom.svg.SVGPointremoveItem(int index)DOM: ImplementsSVGPointList.removeItem(int).org.w3c.dom.svg.SVGPointreplaceItem(org.w3c.dom.svg.SVGPoint newItem, int index)DOM: ImplementsSVGPointList.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(java.lang.String value)Sets the DOM attribute value containing the point list.-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGPointList
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
-
-
-
-
Method Detail
-
createDOMException
protected org.w3c.dom.DOMException createDOMException(short type, java.lang.String key, java.lang.Object[] args)Create a DOMException.- Specified by:
createDOMExceptionin classAbstractSVGList
-
createSVGException
protected org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)Create a SVGException.- Specified by:
createSVGExceptionin classAbstractSVGPointList- Returns:
- SVGException
-
getNumberOfItems
public int getNumberOfItems()
DOM: ImplementsSVGPointList.getNumberOfItems().- Specified by:
getNumberOfItemsin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
getNumberOfItemsin classAbstractSVGList
-
getItem
public org.w3c.dom.svg.SVGPoint getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
getItemin classAbstractSVGPointList- Throws:
org.w3c.dom.DOMException
-
getValueAsString
protected java.lang.String getValueAsString()
Returns the value of the DOM attribute containing the point list.- Specified by:
getValueAsStringin classAbstractSVGList
-
setAttributeValue
protected void setAttributeValue(java.lang.String value)
Sets the DOM attribute value containing the point list.- Specified by:
setAttributeValuein classAbstractSVGList- Parameters:
value- the String representation of the list, or null if the list contains no items
-
clear
public void clear() throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.clear().- Specified by:
clearin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
clearin classAbstractSVGList- Throws:
org.w3c.dom.DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
-
initialize
public org.w3c.dom.svg.SVGPoint initialize(org.w3c.dom.svg.SVGPoint newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.initialize(SVGPoint).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
initializein classAbstractSVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGPoint insertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.insertItemBefore(SVGPoint, int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
insertItemBeforein classAbstractSVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPoint replaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGPointList.replaceItem(SVGPoint, int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
replaceItemin classAbstractSVGPointList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGPoint removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
removeItemin classAbstractSVGPointList- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGPoint appendItem(org.w3c.dom.svg.SVGPoint newItem) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGPointList.appendItem(SVGPoint).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
appendItemin classAbstractSVGPointList- Throws:
org.w3c.dom.DOMException
-
setAnimatedValue
protected void setAnimatedValue(float[] pts)
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:
resetAttributein classAbstractSVGList
-
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:
resetAttributein classAbstractSVGList
-
revalidate
protected void revalidate()
Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.- Overrides:
revalidatein classAbstractSVGList
-
-