net.sf.latexdraw.parsers.svg
Class SVGTransformList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<SVGTransform>
net.sf.latexdraw.parsers.svg.SVGTransformList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<SVGTransform>, java.util.Collection<SVGTransform>, java.util.List<SVGTransform>, java.util.RandomAccess
public class SVGTransformList
- extends java.util.ArrayList<SVGTransform>
Defines a list containing SVG transformations.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
10/16/07
- Since:
- 0.1
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary |
SVGTransformList()
The constructor by default. |
SVGTransformList(java.lang.String transformations)
The constructor using a string containing the transformations. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
SVGTransformList
public SVGTransformList()
- The constructor by default.
- Since:
- 0.1
SVGTransformList
public SVGTransformList(java.lang.String transformations)
- The constructor using a string containing the transformations.
- Parameters:
transformations
- The set of SVG transformations.- Since:
- 0.1
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.AbstractCollection<SVGTransform>
addTransformations
public void addTransformations(java.lang.String transformations)
- Add some transformations using a string containing the transformations.
- Parameters:
transformations
- The set of SVG transformations.- Since:
- 0.1
getGlobalTransformationMatrix
public SVGMatrix getGlobalTransformationMatrix()
- Returns:
- The global transformation which is the multiplication of all the transformation matrix of the list. Or
null is the list has no transformation.
- Since:
- 0.1
transformPoint
public java.awt.geom.Point2D transformPoint(java.awt.geom.Point2D pt)
- Transforms a point according to the transformation of the list. Or null if pt is null.
- Parameters:
pt
- The point to transform.
- Returns:
- The transformed point.