|
@@ -115,11 +115,11 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
|
|
|
|
|
|
// Draw the Vertical Lines
|
|
|
g2.setColor(Color.BLACK);
|
|
|
- for (int i = 0; i <= this.getWidth(); i += 10) {
|
|
|
+ for (int i = 0; i < this.getWidth(); i += 7) {
|
|
|
g2.drawLine(i, 0, i, this.getHeight());
|
|
|
}
|
|
|
|
|
|
- for (int i = 0; i <= this.getHeight(); i += 5) {
|
|
|
+ for (int i = 0; i < this.getHeight(); i += 7) {
|
|
|
g2.drawLine(0, i, this.getWidth(), i);
|
|
|
}
|
|
|
|
|
@@ -350,7 +350,7 @@ public class UnitGraph extends JPanel implements MouseListener, MouseMotionListe
|
|
|
for (int i = 0; i < pointList.size(); i++) {
|
|
|
if (x < pointList.get(i).getX() && !added) {
|
|
|
if (e.getY() <= 0) {
|
|
|
- pointList.add(i, new Point((int) (x), (int) (0 / scaleY)));
|
|
|
+ pointList.add(i, new Point((int) (x), 0));
|
|
|
} else {
|
|
|
pointList.add(i, new Point((int) (x), (int) y));
|
|
|
}
|