aboutsummaryrefslogtreecommitdiff
path: root/src/XEqualsGraphIterator.java
blob: a41eacf5faa802a8cdedd8112f7066b330444f25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*    */ public class XEqualsGraphIterator extends GraphIterator
/*    */ {
/*    */   private Graph2D graph;
/*    */ 
/*    */   private XEqualsGraphIterator(Graph2D graph)
/*    */   {
/* 13 */     super(-(int)(graph.getHeight() * 1.5D));
/* 14 */     this.graph = graph;
/*    */   }
/*    */   public static XEqualsGraphIterator getInstance(Graph2D graph) {
/* 17 */     return new XEqualsGraphIterator(graph);
/*    */   }
/*    */   public boolean hasMoreTokens() {
/* 20 */     return this.index < this.graph.getHeight() * 1.5D;
/*    */   }
/*    */   public void onTurn() {
/* 23 */     this.index += this.graph.getXSkip();
/*    */   }
/*    */   public double translateIndex(Graph2D graph) {
/* 26 */     return this.index * graph.getYRes() + graph.getWindowRange().getYMin();
/*    */   }
/*    */   public double translateNumber(Graph2D graph, double i) {
/* 29 */     return i * graph.getYRes() + graph.getWindowRange().getYMin();
/*    */   }
/*    */ }

/* Location:           Modulus.jar
 * Qualified Name:     XEqualsGraphIterator
 * JD-Core Version:    0.6.2
 */