public abstract class AbstractSVGTransformList extends AbstractSVGList implements org.w3c.dom.svg.SVGTransformList
SVGTransformList
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractSVGTransformList.SVGTransformItem
An
SVGTransform in the list. |
protected static class |
AbstractSVGTransformList.TransformListBuilder
Helper class to interface the
TransformListParser and the
ListHandler . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.
|
itemList, valid
Constructor and Description |
---|
AbstractSVGTransformList() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.svg.SVGTransform |
appendItem(org.w3c.dom.svg.SVGTransform newItem)
DOM: Implements
SVGTransformList.appendItem(SVGTransform) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item is an
SVGTransformList . |
org.w3c.dom.svg.SVGTransform |
consolidate()
DOM: Implements
SVGTransformList.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 new
SVGItem object from the given SVGTransform . |
org.w3c.dom.svg.SVGTransform |
createSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix)
DOM: Implements
SVGTransformList.createSVGTransformFromMatrix(SVGMatrix) . |
protected void |
doParse(java.lang.String value,
ListHandler handler)
Parse the attribute associated with this SVGTransformList.
|
java.awt.geom.AffineTransform |
getAffineTransform()
Returns an
AffineTransform that represents the same transform
as that specified by this transform list. |
org.w3c.dom.svg.SVGTransform |
getItem(int index)
DOM: Implements
SVGTransformList.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: Implements
SVGTransformList.initialize(SVGTransform) . |
org.w3c.dom.svg.SVGTransform |
insertItemBefore(org.w3c.dom.svg.SVGTransform newItem,
int index)
DOM: Implements
SVGTransformList.insertItemBefore(SVGTransform,int) . |
org.w3c.dom.svg.SVGTransform |
removeItem(int index)
DOM: Implements
SVGTransformList.removeItem(int) . |
org.w3c.dom.svg.SVGTransform |
replaceItem(org.w3c.dom.svg.SVGTransform newItem,
int index)
DOM: Implements
SVGTransformList.replaceItem(SVGTransform,int) . |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, getNumberOfItems
public static final java.lang.String SVG_TRANSFORMATION_LIST_SEPARATOR
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
public org.w3c.dom.svg.SVGTransform initialize(org.w3c.dom.svg.SVGTransform newItem) throws DOMException, org.w3c.dom.svg.SVGException
SVGTransformList.initialize(SVGTransform)
.initialize
in interface org.w3c.dom.svg.SVGTransformList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGTransform getItem(int index) throws DOMException
SVGTransformList.getItem(int)
.getItem
in interface org.w3c.dom.svg.SVGTransformList
DOMException
public org.w3c.dom.svg.SVGTransform insertItemBefore(org.w3c.dom.svg.SVGTransform newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
SVGTransformList.insertItemBefore(SVGTransform,int)
.insertItemBefore
in interface org.w3c.dom.svg.SVGTransformList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGTransform replaceItem(org.w3c.dom.svg.SVGTransform newItem, int index) throws DOMException, org.w3c.dom.svg.SVGException
SVGTransformList.replaceItem(SVGTransform,int)
.replaceItem
in interface org.w3c.dom.svg.SVGTransformList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGTransform removeItem(int index) throws DOMException
SVGTransformList.removeItem(int)
.removeItem
in interface org.w3c.dom.svg.SVGTransformList
DOMException
public org.w3c.dom.svg.SVGTransform appendItem(org.w3c.dom.svg.SVGTransform newItem) throws DOMException, org.w3c.dom.svg.SVGException
SVGTransformList.appendItem(SVGTransform)
.appendItem
in interface org.w3c.dom.svg.SVGTransformList
DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGTransform createSVGTransformFromMatrix(org.w3c.dom.svg.SVGMatrix matrix)
SVGTransformList.createSVGTransformFromMatrix(SVGMatrix)
.createSVGTransformFromMatrix
in interface org.w3c.dom.svg.SVGTransformList
public org.w3c.dom.svg.SVGTransform consolidate()
SVGTransformList.consolidate()
.consolidate
in interface org.w3c.dom.svg.SVGTransformList
public java.awt.geom.AffineTransform getAffineTransform()
AffineTransform
that represents the same transform
as that specified by this transform list.protected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem
object from the given SVGTransform
.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- the transform list attribute valuehandler
- transform list handlerParseException
protected void checkItemType(java.lang.Object newItem)
SVGTransformList
.checkItemType
in class AbstractSVGList
Copyright © 2022 Apache Software Foundation. All Rights Reserved.