Class RasterQueryCursorTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
-
- org.openjump.core.ui.plugin.raster.RasterQueryCursorTool
-
- All Implemented Interfaces:
CursorTool
,MouseListener
,MouseMotionListener
,EventListener
public class RasterQueryCursorTool extends NClickTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static String
LAYER
static String
LAYER_NAME
protected org.locationtech.jts.geom.Coordinate
tentativeCoordinate
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
mouseLastLoc
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description RasterQueryCursorTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiEnableCheck
createEnableCheck(WorkbenchContext workbenchContext)
protected void
gestureFinished()
Cursor
getCursor()
Icon
getIcon()
String
getName()
Returns a very brief description of this CursorTool.protected org.locationtech.jts.geom.Point
getPoint()
void
mouseDragged(MouseEvent e)
void
mouseMoved(MouseEvent me)
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease, numClicks
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool
activate, add, cancelGesture, deactivate, finishGesture, getCoordinates, getMetrics, getShape, mouseLocationChanged, mousePressed, mouseReleased, setCloseRing, setMetricsDisplay, toArray
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
add, allowSnapping, 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, 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
-
RasterQueryCursorTool
public RasterQueryCursorTool(WorkbenchContext context)
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getCursor
public Cursor getCursor()
- Specified by:
getCursor
in interfaceCursorTool
- Overrides:
getCursor
in classAbstractCursorTool
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException, IOException, RasterImageLayer.RasterDataNotFoundException
- Specified by:
gestureFinished
in classAbstractCursorTool
- Throws:
NoninvertibleTransformException
IOException
RasterImageLayer.RasterDataNotFoundException
-
getPoint
protected org.locationtech.jts.geom.Point getPoint() throws NoninvertibleTransformException
- Throws:
NoninvertibleTransformException
-
createEnableCheck
public MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classMultiClickTool
-
mouseMoved
public void mouseMoved(MouseEvent me)
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMultiClickTool
-
getName
public String getName()
Description copied from interface:CursorTool
Returns a very brief description of this CursorTool.- Specified by:
getName
in interfaceCursorTool
- Overrides:
getName
in classAbstractCursorTool
- Returns:
- the name of this CursorTool
-
-