|
@@ -105,6 +105,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
|
|
{
|
|
{
|
|
drawUnitGraphPoints(g2D);
|
|
drawUnitGraphPoints(g2D);
|
|
}
|
|
}
|
|
|
|
+ g2D.setColor(dotColor);
|
|
g2D.setStroke(new BasicStroke(1));
|
|
g2D.setStroke(new BasicStroke(1));
|
|
drawCurrentIterartionLine(g2D);
|
|
drawCurrentIterartionLine(g2D);
|
|
}
|
|
}
|
|
@@ -114,7 +115,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
|
|
{
|
|
{
|
|
int cur = model.getCurIteration();
|
|
int cur = model.getCurIteration();
|
|
int max = model.getIterations();
|
|
int max = model.getIterations();
|
|
- double where = ((double) cur)/((double) max);
|
|
|
|
|
|
+ double where = ((double) cur)/((double) max - 1);
|
|
Position oben = new Position(border + (int)(where * widthWithBorder), 0);
|
|
Position oben = new Position(border + (int)(where * widthWithBorder), 0);
|
|
Position unten = new Position(border + (int)(where * widthWithBorder), 2 * border + heightWithBorder);
|
|
Position unten = new Position(border + (int)(where * widthWithBorder), 2 * border + heightWithBorder);
|
|
drawLine(g,oben,unten);
|
|
drawLine(g,oben,unten);
|