Package org.apache.batik.anim.dom
Class SVGOMAnimatedNumberList.AnimSVGNumberList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGNumberList
org.apache.batik.anim.dom.SVGOMAnimatedNumberList.AnimSVGNumberList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGNumberList
- Enclosing class:
- SVGOMAnimatedNumberList
SVGNumberList
implementation for the animated number list value.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
AbstractSVGNumberList.NumberListBuilder
-
Field Summary
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGNumberList
SVG_NUMBER_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.SVGNumber
appendItem
(org.w3c.dom.svg.SVGNumber newItem) DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.void
clear()
DOM: ImplementsSVGNumberList.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
Returns the element owning this SVGNumberList.org.w3c.dom.svg.SVGNumber
getItem
(int index) DOM: ImplementsSVGNumberList.getItem(int)
.int
DOM: ImplementsSVGNumberList.getNumberOfItems()
.protected String
Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGNumber
initialize
(org.w3c.dom.svg.SVGNumber newItem) DOM: ImplementsSVGNumberList.initialize(SVGNumber)
.org.w3c.dom.svg.SVGNumber
insertItemBefore
(org.w3c.dom.svg.SVGNumber newItem, int index) DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber, int)
.org.w3c.dom.svg.SVGNumber
removeItem
(int index) DOM: ImplementsSVGNumberList.removeItem(int)
.org.w3c.dom.svg.SVGNumber
replaceItem
(org.w3c.dom.svg.SVGNumber newItem, int index) DOM: ImplementsSVGNumberList.replaceItem(SVGNumber, 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[] 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.AbstractSVGNumberList
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
-
AnimSVGNumberList
public AnimSVGNumberList()Creates a new AnimSVGNumberList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMException
in classAbstractSVGList
-
createSVGException
Create a SVGException.- Specified by:
createSVGException
in classAbstractSVGNumberList
-
getElement
Returns the element owning this SVGNumberList.- Specified by:
getElement
in classAbstractSVGNumberList
-
getNumberOfItems
public int getNumberOfItems()DOM: ImplementsSVGNumberList.getNumberOfItems()
.- Specified by:
getNumberOfItems
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
getNumberOfItems
in classAbstractSVGList
-
getItem
DOM: ImplementsSVGNumberList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
getItem
in classAbstractSVGNumberList
- 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: ImplementsSVGNumberList.clear()
.- Specified by:
clear
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
clear
in classAbstractSVGList
- Throws:
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
-
initialize
public org.w3c.dom.svg.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.initialize(SVGNumber)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
initialize
in classAbstractSVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber, int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
insertItemBefore
in classAbstractSVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGNumberList.replaceItem(SVGNumber, int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
replaceItem
in classAbstractSVGNumberList
- Throws:
DOMException
org.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGNumberList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
removeItem
in classAbstractSVGNumberList
- Throws:
DOMException
-
appendItem
DOM: ImplementsSVGNumberList.appendItem(SVGNumber)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGNumberList
- Overrides:
appendItem
in classAbstractSVGNumberList
- Throws:
DOMException
-
setAnimatedValue
protected void setAnimatedValue(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 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
-