Package simtools.diagram.gate

Examples of simtools.diagram.gate.StraightPath


        //Gates
        this.fisrtGate = fisrtGate;
        this.lastGate = lastGate;

        // Path
        setPath( new StraightPath(new Point(x, y), new Point(x + w, y + h)) );
    }
View Full Code Here


       //Gates
       this.fisrtGate = null;
       this.lastGate = null;

       // Path
       setPath( new StraightPath(vx, vy));

       // Arrows
       firstArrowTransform = null;
       lastArrowTransform = null;
    }
View Full Code Here

            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;
View Full Code Here

        }
        if(displayLastArrow){
            lastArrowTransform=new AffineTransform();
        }
        if (path == null){
           setPath(new StraightPath(_xv, _yv));
        }
        _xv = null;
        _yv = null;

        // update bounds
View Full Code Here

TOP

Related Classes of simtools.diagram.gate.StraightPath

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.