public class Line2DIterator extends java.lang.Object implements java.util.Iterator<java.awt.geom.Point2D>
Constructor and Description |
---|
Line2DIterator(java.awt.geom.Line2D line)
Create the Line2D Iterator.
|
Line2DIterator(java.awt.geom.Line2D line,
double step)
Create the Line2D Iterator.
|
Line2DIterator(java.awt.geom.Line2D line,
double step,
boolean forceLastPoint)
Create the Line2D Iterator.
|
public Line2DIterator(java.awt.geom.Line2D line, double step, boolean forceLastPoint)
line
- the lien we want to iterate pointsstep
- step between each point (default = 1d)forceLastPoint
- set to true if you want the last point to match the end line positionpublic Line2DIterator(java.awt.geom.Line2D line, double step)
line
- the lien we want to iterate pointsstep
- step between each point (default = 1d)public Line2DIterator(java.awt.geom.Line2D line)
line
- the lien we want to iterate pointspublic boolean hasNext()
hasNext
in interface java.util.Iterator<java.awt.geom.Point2D>
public java.awt.geom.Point2D next()
next
in interface java.util.Iterator<java.awt.geom.Point2D>
public void remove()
remove
in interface java.util.Iterator<java.awt.geom.Point2D>