public class SnapIndicatorTool extends AbstractCursorTool
AbstractCursorTool.Listener
isLinuxOS, panel
Constructor and Description |
---|
SnapIndicatorTool(java.util.Collection snapPolicies) |
SnapIndicatorTool(java.awt.Color snappedColor,
java.awt.Color unsnappedColor,
double diameter,
java.util.Collection snapPolicies) |
Modifier and Type | Method and Description |
---|---|
protected void |
gestureFinished() |
javax.swing.Icon |
getIcon() |
protected java.awt.Shape |
getShape() |
boolean |
isGestureInProgress()
Used by OrCompositeTool to determine whether a CursorTool is busy
interacting with the user.
|
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
activate, add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, createCursor, createCursor, deactivate, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getCursor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getTaskFrame, getWorkbench, getWorkbenchFrame, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setFilling, setPanel, setStroke, setStrokeWidth, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
public SnapIndicatorTool(java.util.Collection snapPolicies)
public SnapIndicatorTool(java.awt.Color snappedColor, java.awt.Color unsnappedColor, double diameter, java.util.Collection snapPolicies)
public javax.swing.Icon getIcon()
protected void gestureFinished() throws java.lang.Exception
gestureFinished
in class AbstractCursorTool
java.lang.Exception
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class AbstractCursorTool
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class AbstractCursorTool
protected java.awt.Shape getShape() throws java.awt.geom.NoninvertibleTransformException
getShape
in class AbstractCursorTool
java.awt.geom.NoninvertibleTransformException
public boolean isGestureInProgress()
AbstractCursorTool
isGestureInProgress
in interface CursorTool
isGestureInProgress
in class AbstractCursorTool