Examples of GateConnectEdit


Examples of simtools.diagram.undo.GateConnectEdit

                AbstractShape newConnector = ((AbstractShape)connection).cloneShape();
                newConnector.translate(x,y);
               
                if (newFg != null){
                    ((Connection)newConnector).connect(newFg, true);
                    compoundEdit.addEdit(new GateConnectEdit( (Connection)newConnector, newFg, true));
                }

                if (newLg != null){
                    ((Connection)newConnector).connect(newLg, false);
                    compoundEdit.addEdit(new GateConnectEdit( (Connection)newConnector, newLg, false));
                }

                // Add it ton container
                ShapesContainer.this.add(newConnector);
               
View Full Code Here

Examples of simtools.diagram.undo.GateConnectEdit

                    TestConnection newConnector = (TestConnection)((TestConnection)connection).cloneTestConnection();
                    newConnector.translate(x,y);

                    if (newFg != null){
                        ((Connection)newConnector).connect(newFg, true);
                        compoundEdit.addEdit(new GateConnectEdit( (Connection)newConnector, newFg, true));
                    }

                    if (newLg != null){
                        ((Connection)newConnector).connect(newLg, false);
                        compoundEdit.addEdit(new GateConnectEdit( (Connection)newConnector, newLg, false));
                    }

                    // Add it ton container
                    TestShapesContainer.this.add(newConnector);  
                }
View Full Code Here

Examples of simtools.diagram.undo.GateConnectEdit

                    // Update connection ends position
                    tg.connection.gatePositionHasChanged(tg.gate);

                    // Add connection edit
                    _compoundEdit.addEdit(new GateConnectEdit(tg.connection, tg.gate,tg.isFirstEnd));

                    res = true;
                }
            }
        }
View Full Code Here

Examples of simtools.diagram.undo.GateConnectEdit

                            // 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
                            _currentTrackedGates.clear();
                            _currentTrackedComponent.clear();
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.