|
@@ -555,12 +555,13 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
// Border Highlighting
|
|
// Border Highlighting
|
|
if (showedInformation[3]) {
|
|
if (showedInformation[3]) {
|
|
g2.setColor(cps.getBorderColor());
|
|
g2.setColor(cps.getBorderColor());
|
|
- if (g2.getColor() != Color.WHITE) {
|
|
|
|
- g2.fillRect((int) (cps.getPosition().x - controller.getScaleDiv2() - scalediv20 - 3),
|
|
|
|
- (int) (cps.getPosition().y - controller.getScaleDiv2() - scalediv20 - 3),
|
|
|
|
- (int) (controller.getScale() + ((scalediv20 + 3) * 2)),
|
|
|
|
- (int) (controller.getScale() + ((scalediv20 + 3) * 2)));
|
|
|
|
- }
|
|
|
|
|
|
+ if (!(cps instanceof CpsNode)){
|
|
|
|
+ //if (g2.getColor() != Color.WHITE) {
|
|
|
|
+ g2.fillRect((int) (cps.getPosition().x - controller.getScaleDiv2() - scalediv20 - 3),
|
|
|
|
+ (int) (cps.getPosition().y - controller.getScaleDiv2() - scalediv20 - 3),
|
|
|
|
+ (int) (controller.getScale() + ((scalediv20 + 3) * 2)),
|
|
|
|
+ (int) (controller.getScale() + ((scalediv20 + 3) * 2)));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
// node image
|
|
// node image
|
|
if (cps instanceof CpsNode && (cps == tempCps || model.getSelectedCpsObject() == cps
|
|
if (cps instanceof CpsNode && (cps == tempCps || model.getSelectedCpsObject() == cps
|
|
@@ -744,7 +745,7 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
public void mouseReleased(MouseEvent e) {
|
|
public void mouseReleased(MouseEvent e) {
|
|
x = e.getX();
|
|
x = e.getX();
|
|
y = e.getY();
|
|
y = e.getY();
|
|
-
|
|
|
|
|
|
+
|
|
dragging = false;
|
|
dragging = false;
|
|
|
|
|
|
if (drawEdge) {
|
|
if (drawEdge) {
|