Class SVGOMAnimatedLengthList.AnimSVGLengthList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.anim.dom.AbstractSVGLengthList
org.apache.batik.anim.dom.SVGOMAnimatedLengthList.AnimSVGLengthList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
- Enclosing class:
SVGOMAnimatedLengthList
SVGLengthList implementation for the animated length list value.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSVGLengthList
AbstractSVGLengthList.LengthListBuilder, AbstractSVGLengthList.SVGLengthItem -
Field Summary
Fields inherited from class AbstractSVGLengthList
direction, SVG_LENGTH_LIST_SEPARATORFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGLengthappendItem(org.w3c.dom.svg.SVGLength newItem) DOM: ImplementsSVGLengthList.appendItem(SVGLength).voidclear()DOM: ImplementsSVGLengthList.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.protected ElementReturns the element owning this SVGLengthList.org.w3c.dom.svg.SVGLengthgetItem(int index) DOM: ImplementsSVGLengthList.getItem(int).intDOM: ImplementsSVGLengthList.getNumberOfItems().protected StringReturns the value of the DOM attribute containing the point list.org.w3c.dom.svg.SVGLengthinitialize(org.w3c.dom.svg.SVGLength newItem) DOM: ImplementsSVGLengthList.initialize(SVGLength).org.w3c.dom.svg.SVGLengthinsertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) DOM: ImplementsSVGLengthList.insertItemBefore(SVGLength, int).org.w3c.dom.svg.SVGLengthremoveItem(int index) DOM: ImplementsSVGLengthList.removeItem(int).org.w3c.dom.svg.SVGLengthreplaceItem(org.w3c.dom.svg.SVGLength newItem, int index) DOM: ImplementsSVGLengthList.replaceItem(SVGLength, 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(short[] types, float[] values) Sets the animated value.protected voidsetAttributeValue(String value) Sets the DOM attribute value containing the point list.Methods inherited from class AbstractSVGLengthList
checkItemType, createSVGItem, doParse, getItemSeparatorMethods inherited from class AbstractSVGList
appendItemImpl, clear, getItemImpl, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsString
-
Constructor Details
-
AnimSVGLengthList
public AnimSVGLengthList()Creates a new AnimSVGLengthList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMExceptionin classAbstractSVGList
-
createSVGException
Create a SVGException.- Specified by:
createSVGExceptionin classAbstractSVGLengthList- Returns:
- SVGException
-
getElement
Returns the element owning this SVGLengthList.- Specified by:
getElementin classAbstractSVGLengthList
-
getNumberOfItems
public int getNumberOfItems()DOM: ImplementsSVGLengthList.getNumberOfItems().- Specified by:
getNumberOfItemsin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
getNumberOfItemsin classAbstractSVGList
-
getItem
DOM: ImplementsSVGLengthList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
getItemin classAbstractSVGLengthList- 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: ImplementsSVGLengthList.clear().- Specified by:
clearin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
clearin classAbstractSVGList- Throws:
DOMException- NO_MODIFICATION_ALLOWED_ERR: Raised when the list cannot be modified.
-
initialize
public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.initialize(SVGLength).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
initializein classAbstractSVGLengthList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
insertItemBefore
public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.insertItemBefore(SVGLength, int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
insertItemBeforein classAbstractSVGLengthList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGLengthList.replaceItem(SVGLength, int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
replaceItemin classAbstractSVGLengthList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGLengthList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
removeItemin classAbstractSVGLengthList- Throws:
DOMException
-
appendItem
DOM: ImplementsSVGLengthList.appendItem(SVGLength).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGLengthList- Overrides:
appendItemin classAbstractSVGLengthList- Throws:
DOMException
-
setAnimatedValue
protected void setAnimatedValue(short[] types, 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
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
-