Class AbstractSVGTransformList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGTransformList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGTransformList
- Direct Known Subclasses:
SVGOMAnimatedTransformList.AnimSVGTransformList, SVGOMAnimatedTransformList.BaseSVGTransformList
public abstract class AbstractSVGTransformList
extends AbstractSVGList
implements org.w3c.dom.svg.SVGTransformList
This class is the implementation of
SVGTransformList.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnSVGTransformin the list.protected static classHelper class to interface theTransformListParserand theListHandler. -
Field Summary
FieldsFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGTransformappendItem(org.w3c.dom.svg.SVGTransform newItem) DOM: ImplementsSVGTransformList.appendItem(SVGTransform).protected voidcheckItemType(Object newItem) Asserts that the given item is anSVGTransformList.org.w3c.dom.svg.SVGTransformDOM: ImplementsSVGTransformList.consolidate().protected abstract org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create an SVGException when the checkItemType fails.protected SVGItemcreateSVGItem(Object newItem) Creates a newSVGItemobject from the givenSVGTransform.org.w3c.dom.svg.SVGTransformcreateSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix) DOM: ImplementsSVGTransformList.createSVGTransformFromMatrix(SVGMatrix).protected voiddoParse(String value, ListHandler handler) Parse the attribute associated with this SVGTransformList.Returns anAffineTransformthat represents the same transform as that specified by this transform list.org.w3c.dom.svg.SVGTransformgetItem(int index) DOM: ImplementsSVGTransformList.getItem(int).protected StringReturn the separator between transform in the list.org.w3c.dom.svg.SVGTransforminitialize(org.w3c.dom.svg.SVGTransform newItem) DOM: ImplementsSVGTransformList.initialize(SVGTransform).org.w3c.dom.svg.SVGTransforminsertItemBefore(org.w3c.dom.svg.SVGTransform newItem, int index) DOM: ImplementsSVGTransformList.insertItemBefore(SVGTransform,int).org.w3c.dom.svg.SVGTransformremoveItem(int index) DOM: ImplementsSVGTransformList.removeItem(int).org.w3c.dom.svg.SVGTransformreplaceItem(org.w3c.dom.svg.SVGTransform newItem, int index) DOM: ImplementsSVGTransformList.replaceItem(SVGTransform,int).Methods inherited from class AbstractSVGList
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.svg.SVGTransformList
clear, getNumberOfItems
-
Field Details
-
SVG_TRANSFORMATION_LIST_SEPARATOR
-
-
Constructor Details
-
AbstractSVGTransformList
public AbstractSVGTransformList()
-
-
Method Details
-
getItemSeparator
Return the separator between transform in the list.- Specified by:
getItemSeparatorin classAbstractSVGList
-
createSVGException
-
initialize
public org.w3c.dom.svg.SVGTransform initialize(org.w3c.dom.svg.SVGTransform newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGTransformList.initialize(SVGTransform).- Specified by:
initializein interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
getItem
DOM: ImplementsSVGTransformList.getItem(int).- Specified by:
getItemin interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGTransform insertItemBefore(org.w3c.dom.svg.SVGTransform newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGTransformList.insertItemBefore(SVGTransform,int).- Specified by:
insertItemBeforein interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGTransform replaceItem(org.w3c.dom.svg.SVGTransform newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGTransformList.replaceItem(SVGTransform,int).- Specified by:
replaceItemin interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
removeItem
DOM: ImplementsSVGTransformList.removeItem(int).- Specified by:
removeItemin interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMException
-
appendItem
public org.w3c.dom.svg.SVGTransform appendItem(org.w3c.dom.svg.SVGTransform newItem) throws DOMException, org.w3c.dom.svg.SVGException DOM: ImplementsSVGTransformList.appendItem(SVGTransform).- Specified by:
appendItemin interfaceorg.w3c.dom.svg.SVGTransformList- Throws:
DOMExceptionorg.w3c.dom.svg.SVGException
-
createSVGTransformFromMatrix
public org.w3c.dom.svg.SVGTransform createSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix) DOM: ImplementsSVGTransformList.createSVGTransformFromMatrix(SVGMatrix).- Specified by:
createSVGTransformFromMatrixin interfaceorg.w3c.dom.svg.SVGTransformList
-
consolidate
public org.w3c.dom.svg.SVGTransform consolidate()DOM: ImplementsSVGTransformList.consolidate().- Specified by:
consolidatein interfaceorg.w3c.dom.svg.SVGTransformList
-
getAffineTransform
Returns anAffineTransformthat represents the same transform as that specified by this transform list. -
createSVGItem
Creates a newSVGItemobject from the givenSVGTransform.- Specified by:
createSVGItemin classAbstractSVGList- Parameters:
newItem- the SVG object- Returns:
- the newly created
SVGItemobject
-
doParse
Parse the attribute associated with this SVGTransformList.- Specified by:
doParsein classAbstractSVGList- Parameters:
value- the transform list attribute valuehandler- transform list handler- Throws:
ParseException
-
checkItemType
Asserts that the given item is anSVGTransformList.- Specified by:
checkItemTypein classAbstractSVGList
-