Package org.tinyuml.ui.diagram.commands

Examples of org.tinyuml.ui.diagram.commands.CreateConnectionCommand


   */
  public void mouseReleased(EditorMouseEvent event) {
    double mx = event.getX(), my = event.getY();
    DiagramElement elem = editor.getDiagram().getChildAt(mx, my);
    if (elem instanceof PackageElement && elem != source) {
      CreateConnectionCommand command = new CreateConnectionCommand(
        elementFactory, editor.getDiagram(), editor, (Node) source,
        (Node) elem);
      editor.execute(command);
    }
    isDragging = false;
View Full Code Here

TOP

Related Classes of org.tinyuml.ui.diagram.commands.CreateConnectionCommand

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.