public class SnapIndicatorTool extends AbstractCursorTool
AbstractCursorTool.Listener| Constructor and Description |
|---|
SnapIndicatorTool(Collection snapPolicies) |
SnapIndicatorTool(Color snappedColor,
Color unsnappedColor,
double diameter,
Collection snapPolicies) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
gestureFinished() |
Icon |
getIcon() |
protected Shape |
getShape() |
boolean |
isGestureInProgress()
Used by OrCompositeTool to determine whether a CursorTool is busy
interacting with the user.
|
void |
mouseDragged(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getCursor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFramepublic SnapIndicatorTool(Collection snapPolicies)
public SnapIndicatorTool(Color snappedColor, Color unsnappedColor, double diameter, Collection snapPolicies)
public Icon getIcon()
protected void gestureFinished()
throws Exception
gestureFinished in class AbstractCursorToolExceptionpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class AbstractCursorToolpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class AbstractCursorToolprotected Shape getShape() throws NoninvertibleTransformException
getShape in class AbstractCursorToolNoninvertibleTransformExceptionpublic boolean isGestureInProgress()
AbstractCursorToolisGestureInProgress in interface CursorToolisGestureInProgress in class AbstractCursorToolCopyright © 2015. All rights reserved.