Examples of canBeHanged()


Examples of simtools.diagram.gate.Gate.canBeHanged()

                        Connection connection = _elementContainer.getSelection().getConnectionAt(gateAnchor.x, gateAnchor.y);
                        if (connection != null && !connection.isConnected(gate)){

                            // first connection bound is free
                            if ( gate.canBeHanged(connection.getPath().getNode(0)) && connection.getFirstEndGate()==null){
                                _currentTrackedGates.add(new TrackedGate(connection, true, gate));

                                // last connection bound is free
                            } else if gate.canBeHanged(connection.getPath().getNode(connection.getPath().getNodeNumber()-1))
                                    && connection.getLastEndGate()==null){
View Full Code Here

Examples of simtools.diagram.gate.Gate.canBeHanged()

                            // first connection bound is free
                            if ( gate.canBeHanged(connection.getPath().getNode(0)) && connection.getFirstEndGate()==null){
                                _currentTrackedGates.add(new TrackedGate(connection, true, gate));

                                // last connection bound is free
                            } else if gate.canBeHanged(connection.getPath().getNode(connection.getPath().getNodeNumber()-1))
                                    && connection.getLastEndGate()==null){
                                _currentTrackedGates.add(new TrackedGate(connection, false, gate));
                            }
                        }
                    }
View Full Code Here

Examples of simtools.diagram.gate.Gate.canBeHanged()

        Point p = new Point(ox, oy);

        List gates = getGates();
        for(int i=0;i<gates.size() && res==null; i++){
            Gate g = (Gate)gates.get(i);
            if ( g.canBeHanged(p)){
                res = g;
            }
        }
        return res;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.