Eclipse GEF
2.1

org.eclipse.gef.handles
Class MoveHandleLocator

java.lang.Object
  |
  +--org.eclipse.gef.handles.MoveHandleLocator
All Implemented Interfaces:
org.eclipse.draw2d.Locator

public class MoveHandleLocator
extends Object
implements org.eclipse.draw2d.Locator

A Locator used to place MoveHandles. By default, a MoveHandle's bounds are equal to its owner figure's bounds, expanded by the handle's Insets.


Constructor Summary
MoveHandleLocator(org.eclipse.draw2d.IFigure ref)
          Creates a new MoveHandleLocator and sets its reference figure to ref.
 
Method Summary
protected  org.eclipse.draw2d.IFigure getReference()
          Returns the reference figure for this locator.
 void relocate(org.eclipse.draw2d.IFigure target)
          Sets the handle's bounds to that of its owner figure's bounds, expanded by the handle's Insets.
 void setReference(org.eclipse.draw2d.IFigure follow)
          Sets the reference figure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveHandleLocator

public MoveHandleLocator(org.eclipse.draw2d.IFigure ref)
Creates a new MoveHandleLocator and sets its reference figure to ref. The reference figure should be the handle's owner figure.

Method Detail

getReference

protected org.eclipse.draw2d.IFigure getReference()
Returns the reference figure for this locator.


relocate

public void relocate(org.eclipse.draw2d.IFigure target)
Sets the handle's bounds to that of its owner figure's bounds, expanded by the handle's Insets.

Specified by:
relocate in interface org.eclipse.draw2d.Locator

setReference

public void setReference(org.eclipse.draw2d.IFigure follow)
Sets the reference figure.


Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.