Package simtools.diagram.gate

Examples of simtools.diagram.gate.ConnectionPathEdit


       
        if (action.equals(resources.getString("RightAnglePath"))) {
            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;
                dirtyArea.width +=20;
                dirtyArea.height +=20;
               
                notifyChange(dirtyArea);
                res = true;
               
                if (undoableEdit != null) {
                    undoableEdit.addEdit(ce);
                }
               
            }
           
         

        } else  if (action.equals(resources.getString("StraightPath"))) {
            if (path instanceof RightAnglePath){
                // Save old params
                Rectangle dirtyArea = getBounds();
               
                ConnectionPathEdit ce = new ConnectionPathEdit(this);
                setPath(new StraightPath(path.getNode(0), path.getNode(path.getNodeNumber()-1)));
                ce.pathHasChanged();
                dirtyArea.add(getBounds());
               
                dirtyArea.x -=10;
                dirtyArea.y -=10;
                dirtyArea.width +=20;
View Full Code Here

TOP

Related Classes of simtools.diagram.gate.ConnectionPathEdit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.