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
SVGPointList implementation for the animated point list value.- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSVGPointList
AbstractSVGPointList.PointsListBuilder -
Field Summary
Fields inherited from class AbstractSVGPointList
SVG_POINT_LIST_SEPARATORFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGPointappendItem(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.appendItem(SVGPoint).voidclear()DOM: ImplementsSVGPointList.clear().protected DOMExceptioncreateDOMException(short type, String key, Object[] args) Create a DOMException.protected org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create a SVGException.org.w3c.dom.svg.SVGPointgetItem(int index) DOM: ImplementsSVGPointList.getItem(int).intDOM: ImplementsSVGPointList.getNumberOfItems().protected StringReturns 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 voidResets the value of the associated attribute.protected voidresetAttribute(SVGItem item) Resets the value of the associated attribute.protected voidInitializes 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.Methods inherited from class AbstractSVGPointList
checkItemType, createSVGItem, doParse, getItemSeparatorMethods inherited from class AbstractSVGList
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
-
Constructor Details
-
AnimSVGPointList
public AnimSVGPointList()Creates a new AnimSVGPointList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMExceptionin classAbstractSVGList
-
createSVGException
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
DOM: ImplementsSVGPointList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
getItemin classAbstractSVGPointList- Throws:
DOMException
-
getValueAsString
Returns the value of the DOM attribute containing the point list.- Specified by:
getValueAsStringin classAbstractSVGList
-
setAttributeValue
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
DOM: ImplementsSVGPointList.clear().- Specified by:
clearin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
clearin classAbstractSVGList- Throws:
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 DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.initialize(SVGPoint).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
initializein classAbstractSVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGPoint insertItemBefore(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint, int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
insertItemBeforein classAbstractSVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGPoint replaceItem(org.w3c.dom.svg.SVGPoint newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGPointList.replaceItem(SVGPoint, int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
replaceItemin classAbstractSVGPointList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGPointList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
removeItemin classAbstractSVGPointList- Throws:
DOMException
-
appendItem
DOM: ImplementsSVGPointList.appendItem(SVGPoint).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGPointList- Overrides:
appendItemin classAbstractSVGPointList- Throws:
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
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
-