159160161162163164165166167168169
//Gates this.fisrtGate = fisrtGate; this.lastGate = lastGate; // Path setPath( new RightAnglePath(new Point(x, y), new Point(x+w, y+h)) ); // Arrows firstArrowTransform = null; lastArrowTransform = null; }
253254255256257258259260261262263
if (path instanceof StraightPath){ // Save old params Rectangle dirtyArea = getBounds(); ConnectionPathEdit ce = new ConnectionPathEdit(this); setPath(new RightAnglePath(path.getNode(0), path.getNode(path.getNodeNumber()-1))); ce.pathHasChanged(); dirtyArea.add(getBounds()); dirtyArea.x -=10; dirtyArea.y -=10;