|
@@ -33,9 +33,9 @@ public class ConnectionStraight extends JPanel implements ComponentListener, Mou
|
|
|
|
|
|
protected Dot start;
|
|
protected Dot start;
|
|
protected Dot end;
|
|
protected Dot end;
|
|
- private final Point[] points = new Point[6];
|
|
|
|
|
|
+ private Point[] points = new Point[6];
|
|
private int pointsSize = 6;
|
|
private int pointsSize = 6;
|
|
- private final Corner[] corners = new Corner[6];
|
|
|
|
|
|
+ private Corner[] corners = new Corner[6];
|
|
private String key = "";
|
|
private String key = "";
|
|
protected MappingBlock mapping;
|
|
protected MappingBlock mapping;
|
|
|
|
|
|
@@ -107,12 +107,12 @@ public class ConnectionStraight extends JPanel implements ComponentListener, Mou
|
|
store.x = p.x - getLocation().x - 1;
|
|
store.x = p.x - getLocation().x - 1;
|
|
store.y = p.y - getLocation().y - 1;
|
|
store.y = p.y - getLocation().y - 1;
|
|
}
|
|
}
|
|
- private final Point p1 = new Point();
|
|
|
|
- private final Point p2 = new Point();
|
|
|
|
- private final Point tp1 = new Point();
|
|
|
|
- private final Point bp1 = new Point();
|
|
|
|
- private final Point tp2 = new Point();
|
|
|
|
- private final Point bp2 = new Point();
|
|
|
|
|
|
+ private Point p1 = new Point();
|
|
|
|
+ private Point p2 = new Point();
|
|
|
|
+ private Point tp1 = new Point();
|
|
|
|
+ private Point bp1 = new Point();
|
|
|
|
+ private Point tp2 = new Point();
|
|
|
|
+ private Point bp2 = new Point();
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void paintBorder(Graphics g) {
|
|
protected void paintBorder(Graphics g) {
|