org.apache.batik.dom.svg
Class SVGOMTransformList
java.lang.Object
|
+--org.apache.batik.dom.svg.SVGOMTransformList
- All Implemented Interfaces:
- LiveAttributeValue, SVGTransformList, TransformListHandler
- public class SVGOMTransformList
- extends java.lang.Object
- implements SVGTransformList, LiveAttributeValue, TransformListHandler
This class provides an implementation of the
SVGTransformList
interface.
Method Summary |
SVGTransform |
appendItem(SVGTransform np)
DOM: Implements SVGTransformList.appendItem(SVGTransform) . |
void |
clear()
DOM: Implements SVGTransformList.clear() . |
SVGTransform |
consolidate()
DOM: Implements SVGTransformList.consolidate() . |
protected DOMException |
createDOMException(short type,
java.lang.String key,
java.lang.Object[] args)
Creates a localized DOM exception. |
SVGTransform |
createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGTransformList.createSVGTransformFromMatrix(SVGMatrix) . |
void |
endTransformList()
Implements TransformListHandler.endTransformList() . |
SVGTransform |
getItem(int i)
DOM: Implements SVGTransformList.getItem(int) . |
int |
getNumberOfItems()
DOM: Implements SVGTransformList.getNumberOfItems() . |
SVGTransform |
initialize(SVGTransform newItem)
DOM: Implements SVGTransformList.initialize(SVGTransform) . |
SVGTransform |
insertItemBefore(SVGTransform newItem,
int index)
DOM: Implements SVGTransformList.insertItemBefore(SVGTransform,int) . |
void |
matrix(float a,
float b,
float c,
float d,
float e,
float f)
Implements TransformListHandler.matrix(float,float,float,float,float,float) . |
protected void |
parseTransform(java.lang.String text)
Parses the given transform representation. |
SVGTransform |
removeItem(int index)
DOM: Implements SVGTransformList.removeItem(int) . |
SVGTransform |
replaceItem(SVGTransform newItem,
int index)
DOM: Implements SVGTransformList.replaceItem(SVGTransform,int) . |
void |
rotate(float theta)
Implements TransformListHandler.rotate(float) . |
void |
rotate(float theta,
float cx,
float cy)
Implements TransformListHandler.rotate(float,float,float) . |
void |
scale(float sx)
Implements TransformListHandler.scale(float) . |
void |
scale(float sx,
float sy)
Implements TransformListHandler.scale(float,float) . |
void |
setAttributeModifier(AttributeModifier am)
Sets the associated attribute modifier. |
void |
skewX(float skx)
Implements TransformListHandler.skewX(float) . |
void |
skewY(float sky)
Implements TransformListHandler.skewY(float) . |
void |
startTransformList()
Implements TransformListHandler.startTransformList() . |
java.lang.String |
toString()
Returns a string representation of this list. |
void |
translate(float tx)
Implements TransformListHandler.translate(float) . |
void |
translate(float tx,
float ty)
Implements TransformListHandler.translate(float,float) . |
void |
valueChanged(Attr oldValue,
Attr newValue)
Called when the string representation of the value as been modified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
list
protected java.util.List list
- The list.
attributeModifier
protected AttributeModifier attributeModifier
- The attribute modifier.
SVGOMTransformList
public SVGOMTransformList()
setAttributeModifier
public void setAttributeModifier(AttributeModifier am)
- Sets the associated attribute modifier.
valueChanged
public void valueChanged(Attr oldValue,
Attr newValue)
- Called when the string representation of the value as been modified.
- Specified by:
valueChanged
in interface LiveAttributeValue
- Parameters:
oldValue
- The old Attr node.newValue
- The new Attr node.
getNumberOfItems
public int getNumberOfItems()
- DOM: Implements
SVGTransformList.getNumberOfItems()
.
- Specified by:
getNumberOfItems
in interface SVGTransformList
clear
public void clear()
- DOM: Implements
SVGTransformList.clear()
.
- Specified by:
clear
in interface SVGTransformList
createSVGTransformFromMatrix
public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
- DOM: Implements
SVGTransformList.createSVGTransformFromMatrix(SVGMatrix)
.
- Specified by:
createSVGTransformFromMatrix
in interface SVGTransformList
consolidate
public SVGTransform consolidate()
- DOM: Implements
SVGTransformList.consolidate()
.
- Specified by:
consolidate
in interface SVGTransformList
initialize
public SVGTransform initialize(SVGTransform newItem)
throws SVGException
- DOM: Implements
SVGTransformList.initialize(SVGTransform)
.
- Specified by:
initialize
in interface SVGTransformList
getItem
public SVGTransform getItem(int i)
throws DOMException
- DOM: Implements
SVGTransformList.getItem(int)
.
- Specified by:
getItem
in interface SVGTransformList
insertItemBefore
public SVGTransform insertItemBefore(SVGTransform newItem,
int index)
throws SVGException
- DOM: Implements
SVGTransformList.insertItemBefore(SVGTransform,int)
.
- Specified by:
insertItemBefore
in interface SVGTransformList
replaceItem
public SVGTransform replaceItem(SVGTransform newItem,
int index)
throws DOMException,
SVGException
- DOM: Implements
SVGTransformList.replaceItem(SVGTransform,int)
.
- Specified by:
replaceItem
in interface SVGTransformList
removeItem
public SVGTransform removeItem(int index)
throws DOMException
- DOM: Implements
SVGTransformList.removeItem(int)
.
- Specified by:
removeItem
in interface SVGTransformList
appendItem
public SVGTransform appendItem(SVGTransform np)
throws SVGException
- DOM: Implements
SVGTransformList.appendItem(SVGTransform)
.
- Specified by:
appendItem
in interface SVGTransformList
toString
public java.lang.String toString()
- Returns a string representation of this list.
- Overrides:
toString
in class java.lang.Object
createDOMException
protected DOMException createDOMException(short type,
java.lang.String key,
java.lang.Object[] args)
- Creates a localized DOM exception.
parseTransform
protected void parseTransform(java.lang.String text)
- Parses the given transform representation.
startTransformList
public void startTransformList()
throws ParseException
- Implements
TransformListHandler.startTransformList()
.
- Specified by:
startTransformList
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
matrix
public void matrix(float a,
float b,
float c,
float d,
float e,
float f)
throws ParseException
- Implements
TransformListHandler.matrix(float,float,float,float,float,float)
.
- Specified by:
matrix
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
rotate
public void rotate(float theta)
throws ParseException
- Implements
TransformListHandler.rotate(float)
.
- Specified by:
rotate
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
rotate
public void rotate(float theta,
float cx,
float cy)
throws ParseException
- Implements
TransformListHandler.rotate(float,float,float)
.
- Specified by:
rotate
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
translate
public void translate(float tx)
throws ParseException
- Implements
TransformListHandler.translate(float)
.
- Specified by:
translate
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
translate
public void translate(float tx,
float ty)
throws ParseException
- Implements
TransformListHandler.translate(float,float)
.
- Specified by:
translate
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
scale
public void scale(float sx)
throws ParseException
- Implements
TransformListHandler.scale(float)
.
- Specified by:
scale
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
scale
public void scale(float sx,
float sy)
throws ParseException
- Implements
TransformListHandler.scale(float,float)
.
- Specified by:
scale
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
skewX
public void skewX(float skx)
throws ParseException
- Implements
TransformListHandler.skewX(float)
.
- Specified by:
skewX
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
skewY
public void skewY(float sky)
throws ParseException
- Implements
TransformListHandler.skewY(float)
.
- Specified by:
skewY
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
endTransformList
public void endTransformList()
throws ParseException
- Implements
TransformListHandler.endTransformList()
.
- Specified by:
endTransformList
in interface TransformListHandler
- Following copied from interface:
org.apache.batik.parser.TransformListHandler
- Throws:
ParseException
- if an error occured while processing
the transform
Copyright © 2000 Apache Software Foundation. All Rights Reserved.