SysML

org.topcased.modeler.sysml.internalblockdiagram.figures
Class FlowPortFigure

java.lang.Object
  extended by org.topcased.draw2d.figures.PortFigure
      extended by org.topcased.modeler.sysml.internalblockdiagram.figures.PortFigure
          extended by org.topcased.modeler.sysml.internalblockdiagram.figures.FlowPortFigure

public class FlowPortFigure
extends PortFigure

** Generated **
NOT

Field Summary
 
Fields inherited from class org.topcased.modeler.sysml.internalblockdiagram.figures.PortFigure
IN_OUT_PORT, IN_PORT, OUT_PORT
 
Constructor Summary
FlowPortFigure()
          Constructor
 
Method Summary
protected  void fillShape(org.eclipse.draw2d.Graphics graphics)
          Draw the figure that should represent the Port.
 ILabel getLabel()
           
protected  void paintHorizontalNonAtomicPort(org.eclipse.draw2d.Graphics graphics)
          Draw a non atomic flow port when its position is on the left or right border of the container
protected  void paintInOutPort(org.eclipse.draw2d.Graphics graphics)
          Paint an InOutPort
protected  void paintInOutPortAtBottom(org.eclipse.draw2d.Graphics graphics)
          Draw an input/ouput port when its position is on the bottom border of the container
protected  void paintInOutPortAtLeft(org.eclipse.draw2d.Graphics graphics)
          Draw an input/ouput port when its position is on the left border of the container
protected  void paintInOutPortAtTop(org.eclipse.draw2d.Graphics graphics)
          Draw an input/ouput port when its position is on the top border of the container
protected  void paintInPort(org.eclipse.draw2d.Graphics graphics)
          Paint an InPort
protected  void paintNonAtomicFlowPort(org.eclipse.draw2d.Graphics graphics)
          Draw a non atomic flow port according its position
protected  void paintOutPort(org.eclipse.draw2d.Graphics graphics)
          Paint an OutPort
protected  void paintPortBottom(org.eclipse.draw2d.Graphics graphics)
          Draw an input port when its position is on the bottom border of the container
protected  void paintPortLeft(org.eclipse.draw2d.Graphics graphics)
          Draw an input port when its position is on the left border of the container
protected  void paintPortRight(org.eclipse.draw2d.Graphics graphics)
          Draw an input port when its position is on the right border of the container
protected  void paintPortTop(org.eclipse.draw2d.Graphics graphics)
          Draw an input port when its position is on the top border of the container
protected  void paintVerticalNonAtomicPort(org.eclipse.draw2d.Graphics graphics)
          Draw a non atomic flow port when its position is on the top or left border of the container
 void setDirection(int portDirection)
          Change the direction of the port (in, out or in/out port)
 void setIsAtomic(boolean atomic)
          Change port atomicity
 void setIsConjugated(boolean conjugated)
          Change port conjugation
 
Methods inherited from class org.topcased.modeler.sysml.internalblockdiagram.figures.PortFigure
getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowPortFigure

public FlowPortFigure()
Constructor

** Generated **
Method Detail

getLabel

public ILabel getLabel()
Overrides:
getLabel in class PortFigure
See Also:
org.topcased.draw2d.figures.ILabelFigure#getLabel()
** Generated **

setDirection

public void setDirection(int portDirection)
Change the direction of the port (in, out or in/out port)

Parameters:
portDirection - the new direction of the port

setIsAtomic

public void setIsAtomic(boolean atomic)
Change port atomicity

Parameters:
atomic - true if the port is atomic

setIsConjugated

public void setIsConjugated(boolean conjugated)
Change port conjugation

Parameters:
conjugated - true if the port is conjugated

fillShape

protected void fillShape(org.eclipse.draw2d.Graphics graphics)
Draw the figure that should represent the Port.

Overrides:
fillShape in class PortFigure
Parameters:
graphics -

paintInPort

protected void paintInPort(org.eclipse.draw2d.Graphics graphics)
Paint an InPort

Parameters:
graphics -

paintOutPort

protected void paintOutPort(org.eclipse.draw2d.Graphics graphics)
Paint an OutPort

Parameters:
graphics -

paintInOutPort

protected void paintInOutPort(org.eclipse.draw2d.Graphics graphics)
Paint an InOutPort

Parameters:
graphics -

paintPortLeft

protected void paintPortLeft(org.eclipse.draw2d.Graphics graphics)
Draw an input port when its position is on the left border of the container

Parameters:
graphics -

paintPortBottom

protected void paintPortBottom(org.eclipse.draw2d.Graphics graphics)
Draw an input port when its position is on the bottom border of the container

Parameters:
graphics -

paintPortRight

protected void paintPortRight(org.eclipse.draw2d.Graphics graphics)
Draw an input port when its position is on the right border of the container

Parameters:
graphics -

paintPortTop

protected void paintPortTop(org.eclipse.draw2d.Graphics graphics)
Draw an input port when its position is on the top border of the container

Parameters:
graphics -

paintInOutPortAtLeft

protected void paintInOutPortAtLeft(org.eclipse.draw2d.Graphics graphics)
Draw an input/ouput port when its position is on the left border of the container

Parameters:
graphics -

paintInOutPortAtTop

protected void paintInOutPortAtTop(org.eclipse.draw2d.Graphics graphics)
Draw an input/ouput port when its position is on the top border of the container

Parameters:
graphics -

paintInOutPortAtBottom

protected void paintInOutPortAtBottom(org.eclipse.draw2d.Graphics graphics)
Draw an input/ouput port when its position is on the bottom border of the container

Parameters:
graphics -

paintNonAtomicFlowPort

protected void paintNonAtomicFlowPort(org.eclipse.draw2d.Graphics graphics)
Draw a non atomic flow port according its position

Parameters:
graphics -

paintHorizontalNonAtomicPort

protected void paintHorizontalNonAtomicPort(org.eclipse.draw2d.Graphics graphics)
Draw a non atomic flow port when its position is on the left or right border of the container

Parameters:
graphics -

paintVerticalNonAtomicPort

protected void paintVerticalNonAtomicPort(org.eclipse.draw2d.Graphics graphics)
Draw a non atomic flow port when its position is on the top or left border of the container

Parameters:
graphics -

SysML

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