diff options
Diffstat (limited to 'src/PolarGraphIterator.java')
| -rw-r--r-- | src/PolarGraphIterator.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/PolarGraphIterator.java b/src/PolarGraphIterator.java new file mode 100644 index 0000000..eaaf2cf --- /dev/null +++ b/src/PolarGraphIterator.java @@ -0,0 +1,26 @@ +/* */ public class PolarGraphIterator extends GraphIterator +/* */ { +/* */ private double tEnd; +/* */ private double tStep; +/* */ +/* */ private PolarGraphIterator(double tStart, double tEnd, double tStep) +/* */ { +/* 13 */ super(tStart); +/* 14 */ this.tEnd = tEnd; +/* 15 */ this.tStep = tStep; +/* */ } +/* */ public static PolarGraphIterator getInstance(Graph2D graph) { +/* 18 */ return new PolarGraphIterator(graph.getTStart(), graph.getTEnd(), graph.getTStep()); +/* */ } +/* */ public boolean hasMoreTokens() { +/* 21 */ return getIndex() <= this.tEnd; +/* */ } +/* */ public void onTurn() { +/* 24 */ this.index += this.tStep; +/* */ } +/* */ } + +/* Location: Modulus.jar + * Qualified Name: PolarGraphIterator + * JD-Core Version: 0.6.2 + */
\ No newline at end of file |