Package org.geomajas.gwt.client.action.menu

Examples of org.geomajas.gwt.client.action.menu.ToggleSelectionAction.toggle()


          && (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


        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.