Examples of ToggleSelectionAction


Examples of org.geomajas.gwt.client.action.menu.ToggleSelectionAction

  // -------------------------------------------------------------------------

  @Override
  public void onActivate() {
    menu = new Menu();
    menu.addItem(new ToggleSelectionAction(mapWidget, pixelTolerance));
    menu.addItem(new DeselectAllAction(mapWidget.getMapModel()));
    mapWidget.setContextMenu(menu);
  }
View Full Code Here

Examples of org.geomajas.gwt.client.action.menu.ToggleSelectionAction

      if (timestamp + clickTimeout > new Date().getTime()
          && (bounds.getWidth() < pixelTolerance || bounds.getHeight() < pixelTolerance)) {
        stopDragging();
        // click behavior instead of drag
        ToggleSelectionAction action = new ToggleSelectionAction(mapWidget, priorityToSelectedLayer,
            pixelTolerance);
        action.toggle(getScreenPosition(event), !shiftOrCtrl);
        return;
      }
    }
    // normal "rectangle" handling
    super.onMouseUp(event);
View Full Code Here

Examples of org.geomajas.gwt.client.action.menu.ToggleSelectionAction

      if (event.getNativeButton() != Event.BUTTON_RIGHT) {
        boolean moving = panner.isMoving();
        panner.onMouseUp(event);
        if (!moving) {
          // Check if we can toggle selection on a feature:
          ToggleSelectionAction action = new ToggleSelectionAction(mapWidget, getPixelTolerance());
          action.toggle(getScreenPosition(event), true);
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.