JHotDraw 7.1

org.jhotdraw.draw
Class LocatorHandle

java.lang.Object
  extended by org.jhotdraw.draw.AbstractHandle
      extended by org.jhotdraw.draw.LocatorHandle
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener, FigureListener, Handle
Direct Known Subclasses:
CloseHandle, FontSizeHandle, MoveHandle, NullHandle

public abstract class LocatorHandle
extends AbstractHandle

A LocatorHandle implements a Handle by delegating the location requests to a Locator object.

Version:
2.0 2006-01-14 Changed to support double precision coordinates.
1.0 2003-12-01 Derived from JHotDraw 5.4b1.
Author:
Werner Randelshofer
See Also:
Locator

Field Summary
 
Fields inherited from class org.jhotdraw.draw.AbstractHandle
listenerList, view
 
Constructor Summary
LocatorHandle(Figure owner, Locator l)
          Initializes the LocatorHandle with the given Locator.
 
Method Summary
protected  java.awt.Rectangle basicGetBounds()
           
 java.awt.Point getLocation()
           
 java.awt.geom.Point2D.Double getLocationOnDrawing()
           
 
Methods inherited from class org.jhotdraw.draw.AbstractHandle
addHandleListener, areaInvalidated, attributeChanged, contains, createSecondaryHandles, dispose, draw, drawCircle, drawDiamond, drawRectangle, figureAdded, figureChanged, figureHandlesChanged, figureRemoved, figureRequestRemove, fireAreaInvalidated, fireHandleRequestRemove, fireHandleRequestSecondaryHandles, fireUndoableEditHappened, getBounds, getCursor, getDrawingArea, getHandlesize, getOwner, getToolTipText, getView, invalidate, isCombinableWith, keyPressed, keyReleased, keyTyped, removeHandleListener, setView, trackDoubleClick, updateBounds, viewTransformChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jhotdraw.draw.Handle
trackEnd, trackStart, trackStep
 

Constructor Detail

LocatorHandle

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

Method Detail

getLocationOnDrawing

public java.awt.geom.Point2D.Double getLocationOnDrawing()

getLocation

public java.awt.Point getLocation()

basicGetBounds

protected java.awt.Rectangle basicGetBounds()
Specified by:
basicGetBounds in class AbstractHandle

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.