public class NullHandle extends LocatorHandle
listenerList, view| Constructor and Description |
|---|
NullHandle(Figure owner,
Locator locator)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addLeadHandles(Figure f,
java.util.Collection<Handle> handles)
Creates handles for each lead of a
figure and adds them to the provided collection.
|
void |
draw(java.awt.Graphics2D g)
Draws this handle.
|
java.awt.Cursor |
getCursor()
Returns a cursor for the handle.
|
void |
trackEnd(java.awt.Point anchor,
java.awt.Point lead,
int modifiersEx)
Tracks the end of the interaction.
|
void |
trackStart(java.awt.Point anchor,
int modifiersEx)
Tracks the start of the interaction.
|
void |
trackStep(java.awt.Point anchor,
java.awt.Point lead,
int modifiersEx)
Tracks a step of the interaction.
|
basicGetBounds, getLocation, getLocationOnDrawingaddHandleListener, areaInvalidated, attributeChanged, contains, createSecondaryHandles, dispose, drawCircle, drawDiamond, drawRectangle, figureAdded, figureChanged, figureHandlesChanged, figureRemoved, figureRequestRemove, fireAreaInvalidated, fireHandleRequestRemove, fireHandleRequestSecondaryHandles, fireUndoableEditHappened, getBounds, getDrawingArea, getEditor, getHandlesize, getOwner, getToolTipText, getView, invalidate, isCombinableWith, keyPressed, keyReleased, keyTyped, removeHandleListener, setToolTipText, setView, trackDoubleClick, updateBounds, viewTransformChangedpublic java.awt.Cursor getCursor()
AbstractHandlegetCursor in interface HandlegetCursor in class AbstractHandlepublic void trackStart(java.awt.Point anchor,
int modifiersEx)
Handleanchor - the position where the interaction startedpublic void trackStep(java.awt.Point anchor,
java.awt.Point lead,
int modifiersEx)
Handleanchor - the position where the interaction startedlead - the current positionpublic void trackEnd(java.awt.Point anchor,
java.awt.Point lead,
int modifiersEx)
Handleanchor - the position where the interaction startedlead - the current positionpublic static void addLeadHandles(Figure f, java.util.Collection<Handle> handles)
public void draw(java.awt.Graphics2D g)
draw in interface Handledraw in class AbstractHandle