|
@@ -595,8 +595,8 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
if (showedInformation[3]) {
|
|
|
g2.setColor(cps.getBorderColor());
|
|
|
if (g2.getColor() != Color.WHITE) {
|
|
|
- g2.fillRect((int) (cps.getPosition().x - scalediv20 - 3),
|
|
|
- (int) (cps.getPosition().y - scalediv20 - 3),
|
|
|
+ g2.fillRect((int) (cps.getPosition().x - controller.getScaleDiv2() - scalediv20 - 3),
|
|
|
+ (int) (cps.getPosition().y - model.getScaleDiv2() - scalediv20 - 3),
|
|
|
(int) (controller.getScale() + ((scalediv20 + 3) * 2)),
|
|
|
(int) (controller.getScale() + ((scalediv20 + 3) * 2)));
|
|
|
}
|
|
@@ -910,6 +910,8 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
|
|
|
@Override
|
|
|
public void mouseReleased(MouseEvent e) {
|
|
|
+ x = e.getX();
|
|
|
+ y = e.getY();
|
|
|
dragging = false;
|
|
|
if (model.getSelectedCpsObjects().size() > 1) {
|
|
|
model.getTableHolonElement().setModel(model.getMultiTable());
|