public class RelativeHandleLocator extends RelativeLocator
RelativeLocator, but adds support for
the HandleBounds interface. If the reference
figure implements HandleBounds, then
HandleBounds.getHandleBounds() will be used as the reference box. If
not, the behavior is the same as that of the superclass.| Constructor and Description |
|---|
RelativeHandleLocator(IFigure reference,
int location)
Constructs a new locator using the given reference figure and location.
|
| Modifier and Type | Method and Description |
|---|---|
protected Rectangle |
getReferenceBox()
Overridden to check for reference figures implementing the
HandleBounds interface. |
getReferenceFigure, relocate, setReferenceFigurepublic RelativeHandleLocator(IFigure reference, int location)
reference - the reference figurelocation - one of NORTH, NORTH_EAST, etc.protected Rectangle getReferenceBox()
HandleBounds interface.getReferenceBox in class RelativeLocatorRelativeLocator.getReferenceBox()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.