UML

org.topcased.modeler.uml.compositestructuresdiagram.figures.internal
Class InternalPortFigure

java.lang.Object
  extended by org.topcased.draw2d.figures.PortFigure
      extended by org.topcased.modeler.uml.compositestructuresdiagram.figures.internal.InternalPortFigure

public class InternalPortFigure
extends org.topcased.draw2d.figures.PortFigure

Represents a 'Port' Figure.
The figure is represented with a white square attached to the border of its container.
A small state symbol is drawn inside the Port Figure when the Port property 'isBehavior' is set to true.


Constructor Summary
InternalPortFigure()
          Constructor
 
Method Summary
 org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint, int hHint)
           
protected  void outlineShape(org.eclipse.draw2d.Graphics graphics)
          An internal Figure is drawn inside the Port Figure when the attribute 'isBehavior' is set to true.
 void setIsBehavior(boolean state)
          Setter for the attribute 'isBehavior' of a Port
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalPortFigure

public InternalPortFigure()
Constructor

Method Detail

getPreferredSize

public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint,
                                                              int hHint)

setIsBehavior

public void setIsBehavior(boolean state)
Setter for the attribute 'isBehavior' of a Port

Parameters:
state - The current state of a Port (structure or behavior)

outlineShape

protected void outlineShape(org.eclipse.draw2d.Graphics graphics)
An internal Figure is drawn inside the Port Figure when the attribute 'isBehavior' is set to true.

See Also:
org.topcased.draw2d.figures.PortFigure#outlineShape(org.eclipse.draw2d.Graphics)

UML

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