Class IndicatorTool
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,Tool
- Direct Known Subclasses:
BoxBandTool
,EditVertexTool
,LineBandTool
,MoveTool
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved, panel, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid
-
Constructor Details
-
IndicatorTool
public IndicatorTool() -
IndicatorTool
-
-
Method Details
-
getShape
Gets the shape for displaying the current state of the action. Subclasses should override.- Returns:
- null if nothing should be drawn
-
isIndicatorVisible
public boolean isIndicatorVisible()Important for XOR drawing. Even if #getShape returns null, this method will return true between calls of #redrawShape and #clearShape. -
clearIndicator
protected void clearIndicator() -
redrawIndicator
protected void redrawIndicator() -
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classBasicTool
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classBasicTool
-