Class SelectItemsByCircleTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.DragTool
-
- org.openjump.core.ui.plugin.edit.helpclassesselection.SelectItemsByCircleTool
-
- All Implemented Interfaces:
CursorTool
,MouseListener
,MouseMotionListener
,EventListener
public class SelectItemsByCircleTool extends DragTool
-
-
Nested Class Summary
-
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 SelectItemsByCircleTool(WorkbenchContext context, double diameter, org.locationtech.jts.geom.Coordinate initCoo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
gestureFinished()
eventsCursor
getCursor()
Icon
getIcon()
protected Shape
getShape()
changed to get circle around mouse pointervoid
mouseMoved(MouseEvent e)
overwritten super method to show teh circle on any mouse movevoid
mousePressed(MouseEvent e)
partly overwrite method to do the things i like tovoid
mouseReleased(MouseEvent e)
overwrite super method since mouseReleased is not needed any moreprotected void
setModelDestination(org.locationtech.jts.geom.Coordinate modelDestination)
(C) Vivid Solutions-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
deactivate, getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
-
-
-
Constructor Detail
-
SelectItemsByCircleTool
public SelectItemsByCircleTool(WorkbenchContext context, double diameter, org.locationtech.jts.geom.Coordinate initCoo)
-
-
Method Detail
-
gestureFinished
protected void gestureFinished() throws Exception
events- Specified by:
gestureFinished
in classAbstractCursorTool
- Throws:
Exception
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classAbstractCursorTool
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
mouseMoved
public void mouseMoved(MouseEvent e)
overwritten super method to show teh circle on any mouse move- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classAbstractCursorTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
overwrite super method since mouseReleased is not needed any more- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classDragTool
-
mousePressed
public void mousePressed(MouseEvent e)
partly overwrite method to do the things i like to- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classDragTool
-
setModelDestination
protected void setModelDestination(org.locationtech.jts.geom.Coordinate modelDestination)
(C) Vivid Solutions- Overrides:
setModelDestination
in classDragTool
-
-