Package org.tinyuml.ui.diagram.commands

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


  /**
   * {@inheritDoc}
   */
  public void moveElements(Command[] moveOperations) {
    MoveElementCommand cmd = new MoveElementCommand(this, moveOperations);
    execute(cmd);
  }
View Full Code Here


   * {@inheritDoc}
   */
  public void moveElement(Node element, Point2D to) {
    // let the editor do it
    MoveParam param = new MoveParam(element, to);
    MoveElementCommand cmd = new MoveElementCommand(this,
      new MoveParam[] {param});
    execute(cmd);
  }
View Full Code Here

    mockElement.expects(once()).method("getAbsoluteY1").
      will(returnValue(oldpos.getY()));
   
    param = new MoveParam(element, newpos);
    params = new MoveParam[] {param};
    command = new MoveElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), params);
  }
View Full Code Here

   */
  @Override
  protected void setUp() {   
    Collection<Node> nodes = new ArrayList<Node>();
    nodes.add((Node) mockNode.proxy());
    command = new MoveElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), nodes, xtrans, ytrans);
  }
View Full Code Here

   * {@inheritDoc}
   */
  public void moveElement(Node element, Point2D to) {
    // let the editor do it
    MoveParam param = new MoveParam(element, to);
    MoveElementCommand cmd = new MoveElementCommand(this,
      new MoveParam[] {param});
    execute(cmd);
  }
View Full Code Here

   * {@inheritDoc}
   */
  public void moveElement(Node element, Point2D to) {
    // let the editor do it
    MoveParam param = new MoveParam(element, to);
    MoveElementCommand cmd = new MoveElementCommand(this,
      new MoveParam[] {param});
    execute(cmd);
  }
View Full Code Here

   * {@inheritDoc}
   */
  public void translateNodes(Collection<Node> nodes, double xtrans,
    double ytrans) {
    // let the editor do it
    MoveElementCommand cmd = new MoveElementCommand(this, nodes, xtrans,
      ytrans);
    execute(cmd);
  }
View Full Code Here

    mockElement.expects(once()).method("getAbsoluteY").
      will(returnValue(oldpos.getY()));
   
    param = new MoveParam(element, newpos);
    params = new MoveParam[] {param};
    command = new MoveElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), params);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void moveElements(Command[] moveOperations) {
    MoveElementCommand cmd = new MoveElementCommand(this, moveOperations);
    execute(cmd);
  }
View Full Code Here

   * {@inheritDoc}
   */
  public void moveElement(Node element, Point2D to) {
    // let the editor do it
    MoveParam param = new MoveParam(element, to);
    MoveElementCommand cmd = new MoveElementCommand(this,
      new MoveParam[] {param});
    execute(cmd);
  }
View Full Code Here

TOP

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

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.