Package org.locationtech.udig.image.georeferencing.internal.ui.imagepanel

Examples of org.locationtech.udig.image.georeferencing.internal.ui.imagepanel.MarkImagePresenter


    MarkModel markModel = MarkModelFactory.getInstance().create();
   
    Point position = ImagePanelUtil.createMarkPosition(hScroll, vScroll, x, y, this.imgComposite.getScale());

    MarkImagePresenter markPresenter = MarkImagePresenterFactory.createMarkPresenter(
                                    markModel, position, hScroll, vScroll,
                                    this.imgComposite.getCanvas(),
                                    this.imgComposite.getScale());
   
    this.imgComposite.addMarkPresenter(markPresenter);
View Full Code Here


  }

  @Override
  protected boolean executeBehaviour(ImageInputEvent ev) {

    MarkImagePresenter presenter = this.imgComposite.getMarkUnderCursor(ev.x, ev.y);
    dragAndDrop(ev.x, ev.y, ev.event, presenter);
    return false;
  }
View Full Code Here

      showFeedback(ev.x, ev.y, ev.event);
    }

    if (InputEvent.MOUSE_UP.equals(ev.event)) {

      MarkImagePresenter presenter = this.imgComposite.getMarkUnderCursor(ev.x, ev.y);
      if (presenter == null) {
        return false;
      }
      this.imgComposite.getCmd().deleteMark(presenter.getMarkModel());
      this.imgComposite.getCmd().evalPrecondition();
    }

    return false;
  }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.image.georeferencing.internal.ui.imagepanel.MarkImagePresenter

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.