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

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

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class ArrowLocator

java.lang.Object
  extended by

org.eclipse.draw2d.AbstractLocator
      extended by

org.eclipse.draw2d.ConnectionLocator
          extended by
org.eclipse.draw2d.ArrowLocator
All Implemented Interfaces:
Locator

public class ArrowLocator
extends ConnectionLocator

Locator used to place a RotatableDecoration on a Connection. The decoration can be placed at the source or target end of the connection figure. The default connection implementation uses a DelegatingLayout which requires locators.


Field Summary
 
Fields inherited from class org.eclipse.draw2d. ConnectionLocator
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET
 
Constructor Summary
ArrowLocator ( Connection connection, int location)
          Constructs an ArrowLocator associated with passed connection and tip location (either ConnectionLocator.SOURCE or ConnectionLocator.TARGET).
 
Method Summary
 void relocate ( IFigure target)
          Relocates the passed in figure (which must be a RotatableDecoration) at either the start or end of the connection.
 
Methods inherited from class org.eclipse.draw2d. ConnectionLocator
getAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnection
 
Methods inherited from class org.eclipse.draw2d. AbstractLocator
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowLocator

public ArrowLocator(
Connection connection,
                    int location)
Constructs an ArrowLocator associated with passed connection and tip location (either ConnectionLocator.SOURCE or ConnectionLocator.TARGET).

Parameters:
connection - The connection associated with the locator
location - Location of the arrow decoration
Since:
2.0
Method Detail

relocate

public void relocate(
IFigure target)
Relocates the passed in figure (which must be a RotatableDecoration) at either the start or end of the connection.

Specified by:
relocate in interface Locator
Overrides:
relocate in class AbstractLocator
Parameters:
target - The RotatableDecoration to relocate

Eclipse Draw2d
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