net.sf.latexdraw.parsers.svg.path
Class SVGPathSegList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<SVGPathSeg>
              extended by net.sf.latexdraw.parsers.svg.path.SVGPathSegList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<SVGPathSeg>, java.util.Collection<SVGPathSeg>, java.util.List<SVGPathSeg>, java.util.RandomAccess, SVGPathHandler

public class SVGPathSegList
extends java.util.ArrayList<SVGPathSeg>
implements SVGPathHandler

Defines a list of SVGPath segments.

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 (at your option) 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/20/07

Version:
3.0
Author:
Arnaud BLOUIN
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SVGPathSegList()
          The constructor by default.
 
Method Summary
 java.awt.geom.Point2D getCurrentPoint(int pos)
          Returns the current point with absolute values at the end of the SVGPathSeg at the position i.
 java.awt.geom.Point2D getInitialPoint(int pos)
          Returns the initial point of the path containing the element at the position i.
 void onPathSeg(SVGPathSeg pathSeg)
          Actions to do when a SVGPath is parsed and created.
 java.lang.String toString()
           
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SVGPathSegList

public SVGPathSegList()
The constructor by default.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<SVGPathSeg>

onPathSeg

public void onPathSeg(SVGPathSeg pathSeg)
Description copied from interface: SVGPathHandler
Actions to do when a SVGPath is parsed and created.

Specified by:
onPathSeg in interface SVGPathHandler
Parameters:
pathSeg - The parsed SVGPath.

getCurrentPoint

public java.awt.geom.Point2D getCurrentPoint(int pos)
Returns the current point with absolute values at the end of the SVGPathSeg at the position i.

Parameters:
pos - The position of the SVGPathSeg to compute the current point.
Returns:
The current point with absolute values.

getInitialPoint

public java.awt.geom.Point2D getInitialPoint(int pos)
Returns the initial point of the path containing the element at the position i.

Parameters:
pos - The position the begin the research.
Returns:
The initial point of the path.
Since:
0.1