UML

org.topcased.modeler.uml.sequencediagram.anchors
Class BehaviorExecutionSpecificationAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by org.topcased.modeler.uml.sequencediagram.anchors.BehaviorExecutionSpecificationAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class BehaviorExecutionSpecificationAnchor
extends org.eclipse.draw2d.AbstractConnectionAnchor

The anchor of the Execution Occurrence


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners
 
Constructor Summary
BehaviorExecutionSpecificationAnchor(org.eclipse.draw2d.IFigure owner, org.eclipse.draw2d.geometry.Point pos)
          Contructor
BehaviorExecutionSpecificationAnchor(org.eclipse.draw2d.IFigure owner, org.eclipse.draw2d.geometry.Point cursor, org.eclipse.draw2d.geometry.Point oppositePos)
          Constructs an anchor with the given owner figure.
 
Method Summary
protected  void computeRefPointFromCursor(org.eclipse.draw2d.geometry.Point pCursor, org.eclipse.draw2d.geometry.Point oppositePos)
          Compute the reference point
 boolean equals(java.lang.Object obj)
           
protected  org.eclipse.draw2d.geometry.Rectangle getBox()
          Returns the bounds of this LifeLineAnchor's owner.
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
          Return the reference point.
 org.eclipse.draw2d.geometry.Point getReferencePoint()
          The reference point is the abolute position of the anchor
 int hashCode()
           
 
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
 

Constructor Detail

BehaviorExecutionSpecificationAnchor

public BehaviorExecutionSpecificationAnchor(org.eclipse.draw2d.IFigure owner,
                                            org.eclipse.draw2d.geometry.Point cursor,
                                            org.eclipse.draw2d.geometry.Point oppositePos)
Constructs an anchor with the given owner figure.

Parameters:
owner - The owner figure
cursor - the position of the cursor
oppositePos - the position of the opposite anchor

BehaviorExecutionSpecificationAnchor

public BehaviorExecutionSpecificationAnchor(org.eclipse.draw2d.IFigure owner,
                                            org.eclipse.draw2d.geometry.Point pos)
Contructor

Parameters:
owner - the owner figure
pos - the position of the anchor
Method Detail

computeRefPointFromCursor

protected void computeRefPointFromCursor(org.eclipse.draw2d.geometry.Point pCursor,
                                         org.eclipse.draw2d.geometry.Point oppositePos)
Compute the reference point

Parameters:
pCursor - the position of the cursor
oppositePos - the position of the opposite anchor

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
Return the reference point.

See Also:
ConnectionAnchor.getLocation(org.eclipse.draw2d.geometry.Point)

getBox

protected org.eclipse.draw2d.geometry.Rectangle getBox()
Returns the bounds of this LifeLineAnchor's owner. Subclasses can override this method to adjust the box the anchor can be placed on. For instance, the owner figure may have a drop shadow that should not be included in the box.

Returns:
The bounds of this LifeLineAnchor's owner

getReferencePoint

public org.eclipse.draw2d.geometry.Point getReferencePoint()
The reference point is the abolute position of the anchor

Specified by:
getReferencePoint in interface org.eclipse.draw2d.ConnectionAnchor
Overrides:
getReferencePoint in class org.eclipse.draw2d.AbstractConnectionAnchor
See Also:
ConnectionAnchor.getReferencePoint()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.