Package org.tinyuml.draw

Examples of org.tinyuml.draw.CompositeElement


  public void mousePressed(EditorMouseEvent event) {
    UmlPackage pkg = (UmlPackage)
      modelElementFactory.create(ElementType.PACKAGE);
    PackageElement pkgElem = new PackageElement(pkg);
    pkg.setName("Package 1");
    CompositeElement parent = editor.getDiagram();
    pkgElem.setOrigin(parent.getMappedX(event.getX()), parent.getMappedY(
      event.getY()));
    CreateElementCommand createCommand = new CreateElementCommand(editor,
      editor.getDiagram(), pkgElem);
    editor.execute(createCommand);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public void mousePressed(EditorMouseEvent event) {
    CompositeElement parent = editor.getDiagram();
    Node element = createElement();
    element.setOrigin(parent.getMappedX(event.getX()), parent.getMappedY(
      event.getY()));
    AddElementCommand createCommand = new AddElementCommand(editor,
      editor.getDiagram(), element);
    editor.execute(createCommand);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void mousePressed(EditorMouseEvent event) {
    CompositeElement parent = editor.getDiagram();
    Node element = createElement();
    element.setOrigin(parent.getMappedX(event.getX()), parent.getMappedY(
      event.getY()));
    AddElementCommand createCommand = new AddElementCommand(editor,
      editor.getDiagram(), element);
    editor.execute(createCommand);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void mousePressed(EditorMouseEvent event) {
    CompositeElement parent = editor.getDiagram();
    Node element = createElement();
    element.setOrigin(parent.getMappedX(event.getX()), parent.getMappedY(
      event.getY()));
    AddElementCommand createCommand = new AddElementCommand(editor,
      editor.getDiagram(), element);
    editor.execute(createCommand);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void mousePressed(EditorMouseEvent event) {
    CompositeElement parent = editor.getDiagram();
    Node element = createElement();
    element.setOrigin(parent.getMappedX(event.getX()), parent.getMappedY(
      event.getY()));
    AddElementCommand createCommand = new AddElementCommand(editor,
      editor.getDiagram(), element);
    editor.execute(createCommand);
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.draw.CompositeElement

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.