Class SnapIndicatorTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.snap.SnapIndicatorTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
Visually indicates the snap point with a coloured dot.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
Fields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
ConstructorsConstructorDescriptionSnapIndicatorTool(Color snappedColor, Color unsnappedColor, double diameter, Collection snapPolicies, WorkbenchContext context) SnapIndicatorTool(Collection snapPolicies, WorkbenchContext context) -
Method Summary
Methods inherited from class AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
Constructor Details
-
SnapIndicatorTool
-
SnapIndicatorTool
public SnapIndicatorTool(Color snappedColor, Color unsnappedColor, double diameter, Collection snapPolicies, WorkbenchContext context)
-
-
Method Details
-
getIcon
- Returns:
- null to use a default icon
-
gestureFinished
- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classAbstractCursorTool
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractCursorTool
-
getShape
- Specified by:
getShapein classAbstractCursorTool- Returns:
- null if nothing should be drawn
- Throws:
NoninvertibleTransformException
-
isGestureInProgress
public boolean isGestureInProgress()Description copied from class:AbstractCursorToolUsed by OrCompositeTool to determine whether a CursorTool is busy interacting with the user.- Specified by:
isGestureInProgressin interfaceCursorTool- Overrides:
isGestureInProgressin classAbstractCursorTool
-