org.apache.batik.dom.svg

Class AbstractSVGTransformList

public abstract class AbstractSVGTransformList extends AbstractSVGList implements SVGTransformList

This class is the implementation of SVGTransformList.
Nested Class Summary
protected classAbstractSVGTransformList.SVGTransformItem
An SVGTransform in the list.
protected classAbstractSVGTransformList.TransformListBuilder
Helper class to interface the TransformListParser and the ListHandler.
Field Summary
static StringSVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.
Method Summary
SVGTransformappendItem(SVGTransform newItem)
DOM: Implements SVGTransformList#appendItem(SVGTransform).
protected voidcheckItemType(Object newItem)
Asserts that the given item is an SVGTransformList.
SVGTransformconsolidate()
DOM: Implements SVGTransformList#consolidate().
protected abstract SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.
protected SVGItemcreateSVGItem(Object newItem)
Creates a new SVGItem object from the given SVGTransform.
SVGTransformcreateSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGTransformList#createSVGTransformFromMatrix(SVGMatrix).
protected voiddoParse(String value, ListHandler handler)
Parse the attribute associated with this SVGTransformList.
AffineTransformgetAffineTransform()
Returns an AffineTransform that represents the same transform as that specified by this transform list.
SVGTransformgetItem(int index)
DOM: Implements SVGTransformList#getItem(int).
protected StringgetItemSeparator()
Return the separator between transform in the list.
SVGTransforminitialize(SVGTransform newItem)
DOM: Implements SVGTransformList#initialize(SVGTransform).
SVGTransforminsertItemBefore(SVGTransform newItem, int index)
DOM: Implements SVGTransformList#insertItemBefore(SVGTransform,int).
SVGTransformremoveItem(int index)
DOM: Implements SVGTransformList#removeItem(int).
SVGTransformreplaceItem(SVGTransform newItem, int index)
DOM: Implements SVGTransformList#replaceItem(SVGTransform,int).

Field Detail

SVG_TRANSFORMATION_LIST_SEPARATOR

public static final String SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.

Method Detail

appendItem

public SVGTransform appendItem(SVGTransform newItem)
DOM: Implements SVGTransformList#appendItem(SVGTransform).

checkItemType

protected void checkItemType(Object newItem)
Asserts that the given item is an SVGTransformList.

consolidate

public SVGTransform consolidate()
DOM: Implements SVGTransformList#consolidate().

createSVGException

protected abstract SVGException createSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.

Returns: SVGException

createSVGItem

protected SVGItem createSVGItem(Object newItem)
Creates a new SVGItem object from the given SVGTransform.

createSVGTransformFromMatrix

public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGTransformList#createSVGTransformFromMatrix(SVGMatrix).

doParse

protected void doParse(String value, ListHandler handler)
Parse the attribute associated with this SVGTransformList.

Parameters: value the transform list attribute value handler transform list handler

getAffineTransform

public AffineTransform getAffineTransform()
Returns an AffineTransform that represents the same transform as that specified by this transform list.

getItem

public SVGTransform getItem(int index)
DOM: Implements SVGTransformList#getItem(int).

getItemSeparator

protected String getItemSeparator()
Return the separator between transform in the list.

initialize

public SVGTransform initialize(SVGTransform newItem)
DOM: Implements SVGTransformList#initialize(SVGTransform).

insertItemBefore

public SVGTransform insertItemBefore(SVGTransform newItem, int index)
DOM: Implements SVGTransformList#insertItemBefore(SVGTransform,int).

removeItem

public SVGTransform removeItem(int index)
DOM: Implements SVGTransformList#removeItem(int).

replaceItem

public SVGTransform replaceItem(SVGTransform newItem, int index)
DOM: Implements SVGTransformList#replaceItem(SVGTransform,int).
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.