Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.handles
Class MoveHandleLocator

java.lang.Object
  extended by
org.eclipse.gef.handles.MoveHandleLocator
All Implemented Interfaces:
Locator

public class MoveHandleLocator
extends java.lang.Object
implements 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 ( IFigure ref)
          Creates a new MoveHandleLocator and sets its reference figure to ref.
 
Method Summary
protected   IFigure getReference ()
          Returns the reference figure for this locator.
 void relocate ( IFigure target)
          Sets the handle's bounds to that of its owner figure's bounds, expanded by the handle's Insets.
 void setReference ( 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(
IFigure ref)
Creates a new MoveHandleLocator and sets its reference figure to ref. The reference figure should be the handle's owner figure.

Parameters:
ref - the handle's owner
Method Detail

getReference

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

Returns:
the handle's owner

relocate

public void relocate(
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 Locator
Parameters:
target - The IFigure to relocate

setReference

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

Parameters:
follow - the reference figure, should be the handle's owner figure

Eclipse GEF
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire