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
protected class SVGOMAnimatedNumberList.AnimSVGNumberList extends AbstractSVGNumberList
SVGNumberListimplementation 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 Constructor Description AnimSVGNumberList()Creates a new AnimSVGNumberList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGNumberappendItem(org.w3c.dom.svg.SVGNumber newItem)DOM: ImplementsSVGNumberList.appendItem(SVGNumber).voidclear()DOM: ImplementsSVGNumberList.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.protected org.w3c.dom.ElementgetElement()Returns the element owning this SVGNumberList.org.w3c.dom.svg.SVGNumbergetItem(int index)DOM: ImplementsSVGNumberList.getItem(int).intgetNumberOfItems()DOM: ImplementsSVGNumberList.getNumberOfItems().protected java.lang.StringgetValueAsString()Returns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGNumberinitialize(org.w3c.dom.svg.SVGNumber newItem)DOM: ImplementsSVGNumberList.initialize(SVGNumber).org.w3c.dom.svg.SVGNumberinsertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index)DOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber, int).org.w3c.dom.svg.SVGNumberremoveItem(int index)DOM: ImplementsSVGNumberList.removeItem(int).org.w3c.dom.svg.SVGNumberreplaceItem(org.w3c.dom.svg.SVGNumber newItem, int index)DOM: ImplementsSVGNumberList.replaceItem(SVGNumber, 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[] values)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.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
-
-
-
-
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 classAbstractSVGNumberList
-
getElement
protected org.w3c.dom.Element getElement()
Returns the element owning this SVGNumberList.- Specified by:
getElementin classAbstractSVGNumberList
-
getNumberOfItems
public int getNumberOfItems()
DOM: ImplementsSVGNumberList.getNumberOfItems().- Specified by:
getNumberOfItemsin interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
getNumberOfItemsin classAbstractSVGList
-
getItem
public org.w3c.dom.svg.SVGNumber getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGNumberList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
getItemin classAbstractSVGNumberList- 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: ImplementsSVGNumberList.clear().- Specified by:
clearin interfaceorg.w3c.dom.svg.SVGNumberList- 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.SVGNumber initialize(org.w3c.dom.svg.SVGNumber newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGNumberList.initialize(SVGNumber).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
initializein classAbstractSVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGNumber insertItemBefore(org.w3c.dom.svg.SVGNumber newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGNumberList.insertItemBefore(SVGNumber, int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
insertItemBeforein classAbstractSVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGNumber replaceItem(org.w3c.dom.svg.SVGNumber newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGNumberList.replaceItem(SVGNumber, int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
replaceItemin classAbstractSVGNumberList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGNumber removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGNumberList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
removeItemin classAbstractSVGNumberList- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGNumber appendItem(org.w3c.dom.svg.SVGNumber newItem) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGNumberList.appendItem(SVGNumber).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGNumberList- Overrides:
appendItemin classAbstractSVGNumberList- Throws:
org.w3c.dom.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:
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
-
-