Package net.sf.myway.edit.ui.editors

Examples of net.sf.myway.edit.ui.editors.CoordinateSystem


  /**
   * @see org.eclipse.gef.commands.Command#execute()
   */
  @Override
  public void execute() {
    final CoordinateSystem cs = _target.getCoordinateSystem();
    final Position position = cs.toPosition(_location);
    MapNode n = EditPlugin.getBL().findNode(position);
    if (n == null) {
      n = new MapNode();
      n.setPosition(position);
    }
View Full Code Here


  private EditMapEditPart _target;

  @Override
  public void execute() {
    final CoordinateSystem cs = _target.getCoordinateSystem();
    final MapNode center = _object.getCenter().getNode();
    final Point pos = new Point(newPos);
    if (_relative) {
      final Point point = cs.toPoint(center.getPosition());
      pos.x += point.x;
      pos.y += point.y;
    }
    final Position position = cs.toPosition(pos);
    MapNode n = getBL().findNode(position);
    if (getBL().hasSingleReference(center)) {
      // there is only one reference to the current center node
      if (n == null)
        // at the move destination there is no node, so we can move it
View Full Code Here

TOP

Related Classes of net.sf.myway.edit.ui.editors.CoordinateSystem

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.