Class SelectMultiItemsTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.DragTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.SelectTool
-
- org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool
-
- All Implemented Interfaces:
CursorTool
,ShortcutsDescriptor
,MouseListener
,MouseMotionListener
,EventListener
public class SelectMultiItemsTool extends SelectTool implements ShortcutsDescriptor
A select tool opening a popup dialog to choose which feature to be selected when several superimposed features are located under the mouse.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SelectMultiItemsTool.StayOpenCheckBoxMenuItemUI
static class
SelectMultiItemsTool.StayOpenMenuItemUI
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description SelectMultiItemsTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(LayerViewPanel layerViewPanel)
Map<QuasimodeTool.ModifierKeySpec,String>
describeShortcuts()
protected void
gestureFinished()
Icon
getIcon()
String
getName()
Returns a very brief description of this CursorTool.boolean
isRightMouseButtonUsed()
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.SelectTool
getCursor, mouseClicked, selectedLayersOnly
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
deactivate, getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
-
-
-
Constructor Detail
-
SelectMultiItemsTool
public SelectMultiItemsTool(WorkbenchContext context)
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interfaceCursorTool
- Overrides:
getIcon
in classSelectTool
- Returns:
- null to use a default icon
-
getName
public String getName()
Description copied from interface:CursorTool
Returns a very brief description of this CursorTool.- Specified by:
getName
in interfaceCursorTool
- Specified by:
getName
in interfaceShortcutsDescriptor
- Overrides:
getName
in classAbstractCursorTool
- Returns:
- the name of this CursorTool
-
isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()
- Specified by:
isRightMouseButtonUsed
in interfaceCursorTool
- Overrides:
isRightMouseButtonUsed
in classAbstractCursorTool
- Returns:
- true if this CursorTool uses the right mouse button; false to allow the panel to show a popup-menu on right-clicks
-
activate
public void activate(LayerViewPanel layerViewPanel)
- Specified by:
activate
in interfaceCursorTool
- Overrides:
activate
in classAbstractCursorTool
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException
- Overrides:
gestureFinished
in classSelectTool
- Throws:
NoninvertibleTransformException
-
describeShortcuts
public Map<QuasimodeTool.ModifierKeySpec,String> describeShortcuts()
- Specified by:
describeShortcuts
in interfaceShortcutsDescriptor
- Overrides:
describeShortcuts
in classSelectTool
-
-