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

  




 

 

Runtime

org.eclipse.gmf.runtime.draw2d.ui.figures
Interface IAnchorableFigure

All Known Subinterfaces:
IPolygonAnchorableFigure
All Known Implementing Classes:
DefaultSizeNodeFigure, NodeFigure, PolylineConnectionEx, WrapperNodeFigure

public interface IAnchorableFigure

Interface class for figures that are anchorable to other figures.


Method Summary
  ConnectionAnchor getConnectionAnchor (java.lang.String terminal)
          Given a string identifier, return the associated anchor for that identifier
 java.lang.String getConnectionAnchorTerminal ( ConnectionAnchor c)
          Dynamically allocates a new anchor if needed.
  ConnectionAnchor getSourceConnectionAnchorAt ( Point p)
          Gets the source connection anchor at a given point on the figure.
  ConnectionAnchor getTargetConnectionAnchorAt ( Point p)
          Gets the target connection anchor at a given point on the figure.
 

Method Detail

getConnectionAnchor

ConnectionAnchor getConnectionAnchor(java.lang.String terminal)
Given a string identifier, return the associated anchor for that identifier

Parameters:
terminal - String identifier associated with the anchor
Returns:
ConnectionAnchor that is associated with the given string.

getConnectionAnchorTerminal

java.lang.String getConnectionAnchorTerminal(
ConnectionAnchor c)
Dynamically allocates a new anchor if needed. Otherwise, recycles old anchors no longer in use.

Parameters:
c - the ConnectionAnchor reference to an anchor associated with the given point on the figure
Returns:
a String that represents the anchor identifier.

getSourceConnectionAnchorAt

ConnectionAnchor getSourceConnectionAnchorAt(
Point p)
Gets the source connection anchor at a given point on the figure.

Parameters:
p - Point on the figure that gives a hint which anchor to return.
Returns:
a ConnectionAnchor reference to an anchor associated with the given point on the figure.

getTargetConnectionAnchorAt

ConnectionAnchor getTargetConnectionAnchorAt(
Point p)
Gets the target connection anchor at a given point on the figure.

Parameters:
p - Point on the figure that gives a hint which anchor to return.
Returns:
ConnectionAnchor reference to an anchor associated with the given point on the figure.

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


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