Modelers

org.topcased.modeler.figures
Class PortAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by org.eclipse.draw2d.ChopboxAnchor
              extended by org.topcased.modeler.figures.PortAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class PortAnchor
extends org.eclipse.draw2d.ChopboxAnchor

Provides Anchor for Ports figure. Created 3 juin 2005


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
PortAnchor(org.eclipse.draw2d.IFigure owner)
          The Constructor
PortAnchor(org.eclipse.draw2d.IFigure owner, boolean isExternal)
          The Constructor
 
Method Summary
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
          The type of the port and its direction indicates the Location of the Anchor
 void setExternal(boolean isExternal)
          Indicates if the anchor will be externally connected
 
Methods inherited from class org.eclipse.draw2d.ChopboxAnchor
equals, getBox, getReferencePoint, 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

PortAnchor

public PortAnchor(org.eclipse.draw2d.IFigure owner)
The Constructor

Parameters:
owner - the Figure that will handle the Anchor

PortAnchor

public PortAnchor(org.eclipse.draw2d.IFigure owner,
                  boolean isExternal)
The Constructor

Parameters:
owner - the Figure that will handle the Anchor
isExternal - true if the anchor should be external
Method Detail

setExternal

public void setExternal(boolean isExternal)
Indicates if the anchor will be externally connected

Parameters:
isExternal - true if the anchor should be external

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
The type of the port and its direction indicates the Location of the Anchor

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

Modelers

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