Package org.tinyuml.ui.diagram.commands.MoveElementCommand

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


  /**
   * {@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("getAbsoluteX1").
      will(returnValue(oldpos.getX()));
    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

  /**
   * {@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

    mockElement.expects(once()).method("getAbsoluteX").
      will(returnValue(oldpos.getX()));
    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 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("getAbsoluteX1").
      will(returnValue(oldpos.getX()));
    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

  /**
   * {@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.MoveParam

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.