JHotDraw 6.0b1

org.jhotdraw.standard
Class LocatorHandle

java.lang.Object
  extended by org.jhotdraw.standard.AbstractHandle
      extended by 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.

See Also:
LocatorHandle

Field Summary
 
Fields inherited from class org.jhotdraw.standard.AbstractHandle
HANDLESIZE
 
Constructor Summary
LocatorHandle(Figure owner, Locator l)
          Initializes the LocatorHandle with the given Locator.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorHandle

public LocatorHandle(Figure owner,
                     Locator l)
Initializes the LocatorHandle with the given Locator.

Method Detail

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()

JHotDraw 6.0b1