Package simtools.diagram.gate

Examples of simtools.diagram.gate.Connection.connect()


                       
                            // If the element created is a connection and if a gate has been tracked,
                            // then perform the connection of the first connection end.
                            if (selectedGate!=null && createdElement instanceof Connection){
                                Connection createdConnection = (Connection)createdElement;
                                createdConnection.connect(selectedGate, true);
                                createdConnection.gatePositionHasChanged(selectedGate);
                                _compoundEdit.addEdit(new GateConnectEdit(createdConnection, selectedGate, true));
                            }
                           
                            // clear tracked gates and components
View Full Code Here


                for(int j=0; j< connections.size(); j++){
                    Connection connection = (Connection)connections.get(j);

                    boolean isFirstGate = connection.getFirstEndGate() == oldGAte;
                    connection.disconnect(oldGAte);
                    connection.connect(newGate, isFirstGate);
                    connection.gatePositionHasChanged(newGate);
                }
            }
        }
    }
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.