Package org.apache.batik.dom.svg
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 ofSVGTransformList
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractSVGTransformList.SVGTransformItem
AnSVGTransform
in the list.protected static class
AbstractSVGTransformList.TransformListBuilder
Helper class to interface theTransformListParser
and theListHandler
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList
itemList, valid
-
-
Constructor Summary
Constructors Constructor Description AbstractSVGTransformList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.svg.SVGTransform
appendItem(org.w3c.dom.svg.SVGTransform newItem)
DOM: ImplementsSVGTransformList.appendItem(SVGTransform)
.protected void
checkItemType(java.lang.Object newItem)
Asserts that the given item is anSVGTransformList
.org.w3c.dom.svg.SVGTransform
consolidate()
DOM: ImplementsSVGTransformList.consolidate()
.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.protected SVGItem
createSVGItem(java.lang.Object newItem)
Creates a newSVGItem
object from the givenSVGTransform
.org.w3c.dom.svg.SVGTransform
createSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix)
DOM: ImplementsSVGTransformList.createSVGTransformFromMatrix(SVGMatrix)
.protected void
doParse(java.lang.String value, ListHandler handler)
Parse the attribute associated with this SVGTransformList.java.awt.geom.AffineTransform
getAffineTransform()
Returns anAffineTransform
that represents the same transform as that specified by this transform list.org.w3c.dom.svg.SVGTransform
getItem(int index)
DOM: ImplementsSVGTransformList.getItem(int)
.protected java.lang.String
getItemSeparator()
Return the separator between transform in the list.org.w3c.dom.svg.SVGTransform
initialize(org.w3c.dom.svg.SVGTransform newItem)
DOM: ImplementsSVGTransformList.initialize(SVGTransform)
.org.w3c.dom.svg.SVGTransform
insertItemBefore(org.w3c.dom.svg.SVGTransform newItem, int index)
DOM: ImplementsSVGTransformList.insertItemBefore(SVGTransform,int)
.org.w3c.dom.svg.SVGTransform
removeItem(int index)
DOM: ImplementsSVGTransformList.removeItem(int)
.org.w3c.dom.svg.SVGTransform
replaceItem(org.w3c.dom.svg.SVGTransform newItem, int index)
DOM: ImplementsSVGTransformList.replaceItem(SVGTransform,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
-
SVG_TRANSFORMATION_LIST_SEPARATOR
public static final java.lang.String SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.- See Also:
- Constant Field Values
-
-
Method Detail
-
getItemSeparator
protected java.lang.String getItemSeparator()
Return the separator between transform in the list.- Specified by:
getItemSeparator
in 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
-
initialize
public org.w3c.dom.svg.SVGTransform initialize(org.w3c.dom.svg.SVGTransform newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGTransformList.initialize(SVGTransform)
.- Specified by:
initialize
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
getItem
public org.w3c.dom.svg.SVGTransform getItem(int index) throws org.w3c.dom.DOMException
DOM: ImplementsSVGTransformList.getItem(int)
.- Specified by:
getItem
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
-
insertItemBefore
public org.w3c.dom.svg.SVGTransform insertItemBefore(org.w3c.dom.svg.SVGTransform newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGTransformList.insertItemBefore(SVGTransform,int)
.- Specified by:
insertItemBefore
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
replaceItem
public org.w3c.dom.svg.SVGTransform replaceItem(org.w3c.dom.svg.SVGTransform newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGTransformList.replaceItem(SVGTransform,int)
.- Specified by:
replaceItem
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
removeItem
public org.w3c.dom.svg.SVGTransform removeItem(int index) throws org.w3c.dom.DOMException
DOM: ImplementsSVGTransformList.removeItem(int)
.- Specified by:
removeItem
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
-
appendItem
public org.w3c.dom.svg.SVGTransform appendItem(org.w3c.dom.svg.SVGTransform newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
DOM: ImplementsSVGTransformList.appendItem(SVGTransform)
.- Specified by:
appendItem
in interfaceorg.w3c.dom.svg.SVGTransformList
- Throws:
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
-
createSVGTransformFromMatrix
public org.w3c.dom.svg.SVGTransform createSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix)
DOM: ImplementsSVGTransformList.createSVGTransformFromMatrix(SVGMatrix)
.- Specified by:
createSVGTransformFromMatrix
in interfaceorg.w3c.dom.svg.SVGTransformList
-
consolidate
public org.w3c.dom.svg.SVGTransform consolidate()
DOM: ImplementsSVGTransformList.consolidate()
.- Specified by:
consolidate
in interfaceorg.w3c.dom.svg.SVGTransformList
-
getAffineTransform
public java.awt.geom.AffineTransform getAffineTransform()
Returns anAffineTransform
that represents the same transform as that specified by this transform list.
-
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
Creates a newSVGItem
object from the givenSVGTransform
.- Specified by:
createSVGItem
in classAbstractSVGList
- Parameters:
newItem
- the SVG object- Returns:
- the newly created
SVGItem
object
-
doParse
protected void doParse(java.lang.String value, ListHandler handler) throws ParseException
Parse the attribute associated with this SVGTransformList.- Specified by:
doParse
in classAbstractSVGList
- Parameters:
value
- the transform list attribute valuehandler
- transform list handler- Throws:
ParseException
-
checkItemType
protected void checkItemType(java.lang.Object newItem)
Asserts that the given item is anSVGTransformList
.- Specified by:
checkItemType
in classAbstractSVGList
-
-