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
SVGPointList
implementation 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGPoint
appendItem
(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.appendItem(SVGPoint)
.void
clear()
DOM: ImplementsSVGPointList.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.org.w3c.dom.svg.SVGPoint
getItem
(int index) DOM: ImplementsSVGPointList.getItem(int)
.int
DOM: ImplementsSVGPointList.getNumberOfItems()
.protected String
Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGPoint
initialize
(org.w3c.dom.svg.SVGPoint newItem) DOM: ImplementsSVGPointList.initialize(SVGPoint)
.org.w3c.dom.svg.SVGPoint
insertItemBefore
(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.insertItemBefore(SVGPoint, int)
.org.w3c.dom.svg.SVGPoint
removeItem
(int index) DOM: ImplementsSVGPointList.removeItem(int)
.org.w3c.dom.svg.SVGPoint
replaceItem
(org.w3c.dom.svg.SVGPoint newItem, int index) DOM: ImplementsSVGPointList.replaceItem(SVGPoint, int)
.protected void
Resets the value of the associated attribute.protected void
resetAttribute
(SVGItem item) Resets the value of the associated attribute.protected void
Initializes the list, if needed.protected void
setAnimatedValue
(float[] pts) 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.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
-
Constructor Details
-
AnimSVGPointList
public AnimSVGPointList()Creates a new AnimSVGPointList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMException
in classAbstractSVGList
-
createSVGException
Create a SVGException.- Specified by:
createSVGException
in classAbstractSVGPointList
- Returns:
- SVGException
-
getNumberOfItems
public int getNumberOfItems()DOM: ImplementsSVGPointList.getNumberOfItems()
.- Specified by:
getNumberOfItems
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
getNumberOfItems
in classAbstractSVGList
-
getItem
DOM: ImplementsSVGPointList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
getItem
in classAbstractSVGPointList
- Throws:
DOMException
-
getValueAsString
Returns the value of the DOM attribute containing the point list.- Specified by:
getValueAsString
in classAbstractSVGList
-
setAttributeValue
Sets the DOM attribute value containing the point list.- Specified by:
setAttributeValue
in classAbstractSVGList
- Parameters:
value
- the String representation of the list, or null if the list contains no items
-
clear
DOM: ImplementsSVGPointList.clear()
.- Specified by:
clear
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
clear
in 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:
initialize
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
initialize
in classAbstractSVGPointList
- Throws:
DOMException
org.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:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
insertItemBefore
in classAbstractSVGPointList
- Throws:
DOMException
org.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:
replaceItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
replaceItem
in classAbstractSVGPointList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGPointList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
removeItem
in classAbstractSVGPointList
- Throws:
DOMException
-
appendItem
DOM: ImplementsSVGPointList.appendItem(SVGPoint)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGPointList
- Overrides:
appendItem
in 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:
resetAttribute
in classAbstractSVGList
-
resetAttribute
Resets the value of the associated attribute. Does nothing, since there is no attribute for an animated value.- Overrides:
resetAttribute
in classAbstractSVGList
-
revalidate
protected void revalidate()Initializes the list, if needed. Does nothing, since there is no attribute to read the list from.- Overrides:
revalidate
in classAbstractSVGList
-