simtools.shapes
Class CurveShape.CurveIterator

java.lang.Object
  extended by simtools.shapes.CurveShape.CurveIterator
All Implemented Interfaces:
java.awt.geom.PathIterator
Enclosing class:
CurveShape

public class CurveShape.CurveIterator
extends java.lang.Object
implements java.awt.geom.PathIterator


Field Summary
 
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
CurveShape.CurveIterator(java.awt.geom.AffineTransform aff, double ox, double oy, double mx, double my, double sx, double sy)
           
 
Method Summary
 int currentSegment()
           
 int currentSegment(double[] coords)
           
 int currentSegment(float[] coords)
           
 int getWindingRule()
           
 boolean isDone()
           
 void next()
           
protected  boolean updateValues()
          Tries to update the current values if they aren't computed yet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveShape.CurveIterator

public CurveShape.CurveIterator(java.awt.geom.AffineTransform aff,
                                double ox,
                                double oy,
                                double mx,
                                double my,
                                double sx,
                                double sy)
Method Detail

updateValues

protected boolean updateValues()
Tries to update the current values if they aren't computed yet. Gets the datasources values for the current index, if they exist. Apply coordinate conversions and affine transforms.

Returns:
true if the values are correct for the current index

currentSegment

public int currentSegment()

currentSegment

public int currentSegment(double[] coords)
Specified by:
currentSegment in interface java.awt.geom.PathIterator

currentSegment

public int currentSegment(float[] coords)
Specified by:
currentSegment in interface java.awt.geom.PathIterator

getWindingRule

public int getWindingRule()
Specified by:
getWindingRule in interface java.awt.geom.PathIterator

isDone

public boolean isDone()
Specified by:
isDone in interface java.awt.geom.PathIterator

next

public void next()
Specified by:
next in interface java.awt.geom.PathIterator