Package org.apache.batik.anim.dom
Class AbstractSVGLengthList
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGList
-
- org.apache.batik.anim.dom.AbstractSVGLengthList
-
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
- Direct Known Subclasses:
SVGOMAnimatedLengthList.AnimSVGLengthList,SVGOMAnimatedLengthList.BaseSVGLengthList
public abstract class AbstractSVGLengthList extends AbstractSVGList implements org.w3c.dom.svg.SVGLengthList
This class is the implementation ofSVGLengthList.- Version:
- $Id: AbstractSVGLengthList.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractSVGLengthList.LengthListBuilderHelper class to interface theLengthListParserand theListHandler.protected classAbstractSVGLengthList.SVGLengthItemAnSVGLengthin the list.
-
Field Summary
Fields Modifier and Type Field Description protected shortdirectionThis length list's direction.static java.lang.StringSVG_LENGTH_LIST_SEPARATORSeparator for a length list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSVGLengthList(short direction)Creates a new SVGLengthList.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGLengthappendItem(org.w3c.dom.svg.SVGLength newItem)DOM: ImplementsSVGLengthList.appendItem(SVGLength).protected voidcheckItemType(java.lang.Object newItem)Asserts that the given item is anSVGLengthList.protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, java.lang.String key, java.lang.Object[] args)Create an SVGException when the checkItemType fails.protected SVGItemcreateSVGItem(java.lang.Object newItem)Creates a newSVGItemobject from the givenSVGLength.protected voiddoParse(java.lang.String value, ListHandler handler)Parses the attribute associated with this SVGLengthList.protected abstract org.w3c.dom.ElementgetElement()Returns the element owning this SVGLengthList.org.w3c.dom.svg.SVGLengthgetItem(int index)DOM: ImplementsSVGLengthList.getItem(int).protected java.lang.StringgetItemSeparator()Return the separator between values in the 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).-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
-
-
-
-
Field Detail
-
direction
protected short direction
This length list's direction.
-
SVG_LENGTH_LIST_SEPARATOR
public static final java.lang.String SVG_LENGTH_LIST_SEPARATOR
Separator for a length list.- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemSeparator
protected java.lang.String getItemSeparator()
Return the separator between values in the list.- Specified by:
getItemSeparatorin classAbstractSVGList
-
createSVGException
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)Create an SVGException when the checkItemType fails.- Returns:
- SVGException
-
getElement
protected abstract org.w3c.dom.Element getElement()
Returns the element owning this SVGLengthList.
-
initialize
public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGLengthList.initialize(SVGLength).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGLength getItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGLengthList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGLengthList.insertItemBefore(SVGLength,int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGLengthList.replaceItem(SVGLength,int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGLength removeItem(int index) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGLengthList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGExceptionDOM: ImplementsSVGLengthList.appendItem(SVGLength).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGLengthList- Throws:
org.w3c.dom.DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Creates a newSVGItemobject from the givenSVGLength.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseExceptionParses the attribute associated with this SVGLengthList.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- attribute valuehandler- length list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem) throws org.w3c.dom.svg.SVGExceptionAsserts that the given item is anSVGLengthList.- Specified by:
checkItemTypein classAbstractSVGList- Throws:
org.w3c.dom.svg.SVGException
-
-