edu.stanford.hci.dtools.statechart.parts
Class SourceConnectionAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by org.eclipse.draw2d.ChopboxAnchor
              extended by edu.stanford.hci.dtools.statechart.parts.SourceConnectionAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class SourceConnectionAnchor
extends org.eclipse.draw2d.ChopboxAnchor

Special ChopboxAnchor which shifts the connection anchor a little bit so that bidirectional connections between states don't lie on top of each other.

This software is distributed under the BSD License.

Author:
Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
 
Constructor Summary
SourceConnectionAnchor()
           
SourceConnectionAnchor(org.eclipse.draw2d.IFigure owner, boolean isSource)
           
 
Method Summary
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
           
 
Methods inherited from class org.eclipse.draw2d.ChopboxAnchor
equals, getReferencePoint, hashCode
 
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwner
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceConnectionAnchor

public SourceConnectionAnchor()

SourceConnectionAnchor

public SourceConnectionAnchor(org.eclipse.draw2d.IFigure owner,
                              boolean isSource)
Method Detail

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
Specified by:
getLocation in interface org.eclipse.draw2d.ConnectionAnchor
Overrides:
getLocation in class org.eclipse.draw2d.ChopboxAnchor