org.jhotdraw.standard
Class LocatorHandle
java.lang.Object
org.jhotdraw.standard.AbstractHandle
org.jhotdraw.standard.LocatorHandle
- All Implemented Interfaces:
- Handle
- Direct Known Subclasses:
- ConnectionHandle, FontSizeHandle, NullHandle, PolyLineHandle
public class LocatorHandle
- extends AbstractHandle
A LocatorHandle implements a Handle by delegating the location requests to
a Locator object.
- Version:
- <$CURRENT_VERSION$>
- See Also:
LocatorHandle
Method Summary |
Cursor |
getCursor()
Returns the preferred Cursor for this Handle. |
Locator |
getLocator()
This should be cloned or it gives the receiver the opportunity to alter
our internal behavior. |
java.awt.Point |
locate()
Locates the handle on the figure by forwarding the request
to its figure. |
Methods inherited from class org.jhotdraw.standard.AbstractHandle |
containsPoint, displayBox, draw, getUndoActivity, invokeEnd, invokeEnd, invokeStart, invokeStart, invokeStep, invokeStep, owner, setUndoActivity |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocatorHandle
public LocatorHandle(Figure owner,
Locator l)
- Initializes the LocatorHandle with the given Locator.
getLocator
public Locator getLocator()
- This should be cloned or it gives the receiver the opportunity to alter
our internal behavior.
locate
public java.awt.Point locate()
- Locates the handle on the figure by forwarding the request
to its figure.
getCursor
public Cursor getCursor()
- Description copied from interface:
Handle
- Returns the preferred Cursor for this Handle.
- Specified by:
getCursor
in interface Handle
- Overrides:
getCursor
in class AbstractHandle
- Returns:
- Cursor
- See Also:
Handle.getCursor()