Examples of BBoxSelectionCommand


Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

   * @param bounds
   */
  protected void sendSelectionCommand(MapMouseEvent e, Envelope bounds) {
    MapCommand command;
    if( e.isModifierDown(MapMouseEvent.MOD2_DOWN_MASK) ) {
            command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.ADD);
        }else if( e.isModifierDown(MapMouseEvent.MOD1_DOWN_MASK) ){
            command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.SUBTRACT);
        }else{
          command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.NONE);
        }
       
        getContext().sendASyncCommand(command);
    selecting = false;
    shapeCommand.setValid(false);
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

   *         {@linkplain SelectionManager}to be executed.
   * @see Envelope
   * @see MapCommand
   */
  public MapCommand createBBoxSelectionCommand(Envelope bbox, int modifiers) {
    return new BBoxSelectionCommand(bbox, modifiers);
  }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

     *         {@linkplain SelectionManager}to be executed.
     * @see Envelope
     * @see MapCommand
     */
    public MapCommand createBBoxSelectionCommand( Envelope boundingBox ) {
        return new BBoxSelectionCommand(boundingBox, BBoxSelectionCommand.NONE);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

   * @see Envelope
   * @see MapCommand
   */
  @Override
    public UndoableMapCommand createBBoxSelectionCommand(Envelope bbox, int modifiers) {
    return new BBoxSelectionCommand(bbox, modifiers);
  }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

     * @see Envelope
     * @see MapCommand
     */
    @Override
    public UndoableMapCommand createBBoxSelectionCommand( Envelope boundingBox ) {
        return new BBoxSelectionCommand(boundingBox, BBoxSelectionCommand.NONE);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.selection.BBoxSelectionCommand

        Coordinate c2 = context.getMap().getViewportModel().pixelToWorld(x2, y2);

        Envelope bounds = new Envelope(c1, c2);

        // remove the bounding box selection
        MapCommand cmd = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.NONE);
        getContext().sendASyncCommand(cmd);

        selectionBoxCommand.setValid(false);
        getContext().getViewportPane().repaint();
    }
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.