JHotDraw 7.4.1

org.jhotdraw.draw.handle
Class LocatorHandle

java.lang.Object
  extended by org.jhotdraw.draw.handle.AbstractHandle
      extended by org.jhotdraw.draw.handle.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:
$Id: LocatorHandle.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer
See Also:
Locator

Field Summary
 
Fields inherited from class org.jhotdraw.draw.handle.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.handle.AbstractHandle
addHandleListener, areaInvalidated, attributeChanged, contains, createSecondaryHandles, dispose, draw, drawCircle, drawDiamond, drawRectangle, figureAdded, figureChanged, figureHandlesChanged, figureRemoved, figureRequestRemove, fireAreaInvalidated, fireHandleRequestRemove, fireHandleRequestSecondaryHandles, fireUndoableEditHappened, getBounds, getCursor, getDrawingArea, getEditor, getHandlesize, getOwner, getToolTipText, getView, invalidate, isCombinableWith, keyPressed, keyReleased, keyTyped, removeHandleListener, setToolTipText, 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.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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.