|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.AbstractHandle
org.jhotdraw.draw.LocatorHandle
org.jhotdraw.draw.MoveHandle
public class MoveHandle
A handle that changes the location of the owning figure, if the figure is transformable.
Field Summary |
---|
Fields inherited from class org.jhotdraw.draw.AbstractHandle |
---|
listenerList, view |
Constructor Summary | |
---|---|
MoveHandle(Figure owner,
Locator locator)
Creates a new instance. |
Method Summary | |
---|---|
static void |
addMoveHandles(Figure f,
java.util.Collection<Handle> handles)
Creates handles for each corner of a figure and adds them to the provided collection. |
void |
draw(java.awt.Graphics2D g)
Draws this handle. |
static Handle |
east(Figure owner)
|
java.awt.Cursor |
getCursor()
Returns a cursor for the handle. |
static Handle |
north(Figure owner)
|
static Handle |
northEast(Figure owner)
|
static Handle |
northWest(Figure owner)
|
static Handle |
south(Figure owner)
|
static Handle |
southEast(Figure owner)
|
static Handle |
southWest(Figure owner)
|
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. |
static Handle |
west(Figure owner)
|
Methods inherited from class org.jhotdraw.draw.LocatorHandle |
---|
basicGetBounds, getLocation, getLocationOnDrawing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoveHandle(Figure owner, Locator locator)
Method Detail |
---|
public static void addMoveHandles(Figure f, java.util.Collection<Handle> handles)
public void draw(java.awt.Graphics2D g)
If the figure is transformable, the handle is drawn as a filled rectangle. If the figure is not transformable, the handle is drawn as an unfilled rectangle.
draw
in interface Handle
draw
in class AbstractHandle
public java.awt.Cursor getCursor()
getCursor
in interface Handle
getCursor
in class AbstractHandle
public void trackStart(java.awt.Point anchor, int modifiersEx)
Handle
anchor
- the position where the interaction startedpublic void trackStep(java.awt.Point anchor, java.awt.Point lead, int modifiersEx)
Handle
anchor
- the position where the interaction startedlead
- the current positionpublic void trackEnd(java.awt.Point anchor, java.awt.Point lead, int modifiersEx)
Handle
anchor
- the position where the interaction startedlead
- the current positionpublic static Handle south(Figure owner)
public static Handle southEast(Figure owner)
public static Handle southWest(Figure owner)
public static Handle north(Figure owner)
public static Handle northEast(Figure owner)
public static Handle northWest(Figure owner)
public static Handle east(Figure owner)
public static Handle west(Figure owner)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |