Package org.locationtech.udig.project.ui.commands

Examples of org.locationtech.udig.project.ui.commands.SelectionBoxCommand


    /**
     * @see org.locationtech.udig.project.ui.tool.AbstractTool#mousePressed(org.locationtech.udig.project.render.displayAdapter.MapMouseEvent)
     */
    public void mousePressed( MapMouseEvent e ) {
        shapeCommand = new SelectionBoxCommand();

        if (e.button == MapMouseEvent.BUTTON3 && showContextOnRightClick) {
            ((ViewportPane) e.source).getMapEditor().openContextMenu();
            return;
        }
View Full Code Here


  /**
   * @see org.locationtech.udig.project.ui.tool.AbstractTool#mousePressed(org.locationtech.udig.project.render.displayAdapter.MapMouseEvent)
   */
  public void onMousePressed(MapMouseEvent e) {
    shapeCommand = new SelectionBoxCommand();

    if (((e.button & MapMouseEvent.BUTTON1) != 0)) {
      selecting = true;

      start = e.getPoint();
View Full Code Here

    /**
     * @see org.locationtech.udig.project.ui.tool.AbstractTool#mousePressed(org.locationtech.udig.project.render.displayAdapter.MapMouseEvent)
     */
    public void onMousePressed( MapMouseEvent e ) {
        shapeCommand = new SelectionBoxCommand();

        if (((e.button & MapMouseEvent.BUTTON1) != 0)) {
            selecting = true;

            start = e.getPoint();
View Full Code Here

        if (e.button != MapMouseEvent.BUTTON1) {
            return;
        }
        // Draw the initial bbox
        selectionBoxCommand = new SelectionBoxCommand(); // this.mergeContext.getSelectionBoxCommand();

        Point start = e.getPoint();
        this.mergeContext.setBBoxStartPoint(start);

        selectionBoxCommand.setValid(true);
View Full Code Here

     * Reinitializes the status context
     */
    public void initContext() {

        bboxStartPoint = null;
        selectionBoxCommand = new SelectionBoxCommand();

        mergeView = null;
        toolContext = null;

        boundList.clear();
View Full Code Here

    /**
     * @see org.locationtech.udig.project.ui.tool.AbstractTool#mousePressed(org.locationtech.udig.project.render.displayAdapter.MapMouseEvent)
     */
    public void onMousePressed( MapMouseEvent e ) {
        shapeCommand = new SelectionBoxCommand();

        if (((e.button & MapMouseEvent.BUTTON1) != 0)) {
            selecting = true;

            start = e.getPoint();
View Full Code Here

        if (selectBehaviour == null) {
            handler.lock(this);
            selectBehaviour=new SelectBehaviour();
            handler.getBehaviours().add(selectBehaviour);
            drawShapeCommand = new SelectionBoxCommand();
           
            handler.getContext().getViewportPane().addDrawCommand(drawShapeCommand);
        }
        Point start = handler.getMouseTracker().getDragStarted();
        drawShapeCommand.setShape(new Rectangle(Math.min(start.getX(), e.x), Math.min(
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.commands.SelectionBoxCommand

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.