Class RasterQueryDragTool
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.DragTool
-
- com.vividsolutions.jump.workbench.ui.cursortool.RectangleTool
-
- org.openjump.core.ui.plugin.raster.RasterQueryDragTool
-
- All Implemented Interfaces:
CursorTool,MouseListener,MouseMotionListener,EventListener
public class RasterQueryDragTool extends RectangleTool
-
-
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 StringLAYERstatic StringLAYER_NAMEprotected org.locationtech.jts.geom.CoordinatetentativeCoordinate-
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 RasterQueryDragTool(WorkbenchContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiEnableCheckcreateEnableCheck(WorkbenchContext workbenchContext)protected voidgestureFinished()CursorgetCursor()IcongetIcon()StringgetName()Returns a very brief description of this CursorTool.protected voidnotsaved()voidprintArray(RasterImageLayer rLayer, org.locationtech.jts.geom.Geometry fence)protected voidsaved(File file)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.RectangleTool
getRectangle, setModelDestination, setModelSource
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
deactivate, getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, 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, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
-
-
-
Constructor Detail
-
RasterQueryDragTool
public RasterQueryDragTool(WorkbenchContext context)
-
-
Method Detail
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException, IOException, RasterImageLayer.RasterDataNotFoundException- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
NoninvertibleTransformExceptionIOExceptionRasterImageLayer.RasterDataNotFoundException
-
createEnableCheck
public MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
-
getName
public String getName()
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
printArray
public void printArray(RasterImageLayer rLayer, org.locationtech.jts.geom.Geometry fence) throws NoninvertibleTransformException, IOException
-
saved
protected void saved(File file)
-
notsaved
protected void notsaved()
-
-