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.gef.ui.figures
Class SlidableOvalAnchor

java.lang.Object
  extended by 

org.eclipse.draw2d.ConnectionAnchorBase
      extended by 

org.eclipse.draw2d.AbstractConnectionAnchor
          extended by 

org.eclipse.gmf.runtime.draw2d.ui.figures.BaseSlidableAnchor
              extended by 

org.eclipse.gmf.runtime.gef.ui.figures.SlidableAnchor
                  extended by 
org.eclipse.gmf.runtime.gef.ui.figures.SlidableOvalAnchor
All Implemented Interfaces:
AncestorListener, ConnectionAnchor, OrthogonalConnectionAnchor

public class SlidableOvalAnchor
extends SlidableAnchor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d. AncestorListener
AncestorListener.Stub
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d. ConnectionAnchorBase
listeners
 
Constructor Summary
SlidableOvalAnchor ()
          Default constructor
SlidableOvalAnchor ( IOvalAnchorableFigure f)
          Creates default SlidableOvalAnchor with a reference points at the center of the figure
SlidableOvalAnchor ( IOvalAnchorableFigure f, PrecisionPoint p)
          Creates SlidableOvalAnchor with a specified reference points
 
Method Summary
protected   Rectangle getBox ()
          Gets the anchors associated figure's bounding box in absolute coordinates.
protected   PointList getIntersectionPoints ( Point ownReference, Point foreignReference)
          Calculates intersection points of the figure and the line that passes through ownReference and foreignReference points
 
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.figures. BaseSlidableAnchor
equals, getAnchorRelativeLocation, getLocation, getLocation, getOrthogonalLocation, getPolygonPoints, getReferencePoint, getTerminal, hashCode, isDefaultAnchor, normalizeToStraightlineTolerance, parseTerminalString
 
Methods inherited from class org.eclipse.draw2d. AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwner
 
Methods inherited from class org.eclipse.draw2d. ConnectionAnchorBase
fireAnchorMoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.draw2d. ConnectionAnchor
addAnchorListener, getOwner, removeAnchorListener
 

Constructor Detail

SlidableOvalAnchor

public SlidableOvalAnchor()
Default constructor


SlidableOvalAnchor

public SlidableOvalAnchor(
IOvalAnchorableFigure f)
Creates default SlidableOvalAnchor with a reference points at the center of the figure

Parameters:
f - the IOvalAnchorableFigure that this anchor will be associated with

SlidableOvalAnchor

public SlidableOvalAnchor(
IOvalAnchorableFigure f,
                          
PrecisionPoint p)
Creates SlidableOvalAnchor with a specified reference points

Parameters:
f - the IOvalAnchorableFigure that this anchor will be associated with
p - the PrecisionPoint that the anchor will initially attach to.
Method Detail

getBox

protected 
Rectangle getBox()
Description copied from class: SlidableAnchor
Gets the anchors associated figure's bounding box in absolute coordinates.

Overrides:
getBox in class SlidableAnchor
Returns:
a Rectangle that is the bounding box of the owner figure in relative coordinates

getIntersectionPoints

protected 
PointList getIntersectionPoints(
Point ownReference,
                                          
Point foreignReference)
Description copied from class: BaseSlidableAnchor
Calculates intersection points of the figure and the line that passes through ownReference and foreignReference points

Overrides:
getIntersectionPoints in class BaseSlidableAnchor
Parameters:
ownReference - the reference Point on or inside the shape that is being anchored to.
foreignReference - the outside reference Point point that is the terminal end of the line formed by the two parameters.
Returns:
intersection points of the figure and the line that passes through ownReference and foreignReference points

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