de.cau.cs.kieler.core.model.gmf.figures
Class SlidableRoundedRectangleAnchor

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 de.cau.cs.kieler.core.model.gmf.figures.SlidableRoundedRectangleAnchor
All Implemented Interfaces:
AncestorListener, ConnectionAnchor, OrthogonalConnectionAnchor

public class SlidableRoundedRectangleAnchor
extends SlidableAnchor

A slideable anchor for rounded rectangle figures.

Rating red

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
SlidableRoundedRectangleAnchor()
          The default constructor.
SlidableRoundedRectangleAnchor(IRoundedRectangleAnchorableFigure figure)
          Constructs a SlidableRoundedRectangleAnchor without a desired anchor point.
SlidableRoundedRectangleAnchor(IRoundedRectangleAnchorableFigure figure, PrecisionPoint p)
          Constructs a SlidableRoundedRectangleAnchor.
 
Method Summary
protected  Rectangle getBox()
          
protected  PointList getIntersectionPoints(Point ownReference, Point foreignReference)
          
 
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

SlidableRoundedRectangleAnchor

public SlidableRoundedRectangleAnchor()
The default constructor.


SlidableRoundedRectangleAnchor

public SlidableRoundedRectangleAnchor(IRoundedRectangleAnchorableFigure figure)
Constructs a SlidableRoundedRectangleAnchor without a desired anchor point.

Parameters:
figure - the anchorable figure

SlidableRoundedRectangleAnchor

public SlidableRoundedRectangleAnchor(IRoundedRectangleAnchorableFigure figure,
                                      PrecisionPoint p)
Constructs a SlidableRoundedRectangleAnchor.

Parameters:
figure - the anchorable figure
p - the desired anchor point
Method Detail

getBox

protected Rectangle getBox()

Overrides:
getBox in class SlidableAnchor

getIntersectionPoints

protected PointList getIntersectionPoints(Point ownReference,
                                          Point foreignReference)

Overrides:
getIntersectionPoints in class BaseSlidableAnchor