- All Implemented Interfaces:
- java.util.Iterator<java.awt.Point>
- Enclosing class:
- Line
public static class Line.PointIterator
extends java.lang.Object
implements java.util.Iterator<java.awt.Point>
Dedicated point iterator for thin lines.
The iterator is based on (an improved version of) the algorithm used by
the original method ImageProcessor.getLine(double, double, double, double).
Improvements are (a) that the endpoint is drawn too and (b) every line
point is visited only once, duplicates are skipped.
Author: Wilhelm Burger (04/2017)