UML

org.topcased.modeler.uml.sequencediagram.figures
Class LifelineFigure

java.lang.Object
  extended by ModelerFigure
      extended by org.topcased.modeler.uml.sequencediagram.figures.LifelineFigure

public class LifelineFigure
extends ModelerFigure

** Generated **
NOT

Constructor Summary
LifelineFigure()
          Constructor
 
Method Summary
protected  void drawFigure()
          Complete cutom figure
 org.eclipse.draw2d.geometry.Rectangle getHeaderBounds()
          Return the bounds of the header
 org.eclipse.draw2d.IFigure getHeaderFigure()
          Get the Header figure.
protected  void paintFigure(org.eclipse.draw2d.Graphics graphics)
          Add the dashed line of the lifeline and the cross for the destruction event if necessary
 void setHasDestructionEvent(boolean hasOne)
          This method is used to update the DestructionEvent representation inside the Lifeline figure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifelineFigure

public LifelineFigure()
Constructor

** Generated **
Method Detail

drawFigure

protected void drawFigure()
Complete cutom figure

See Also:
org.topcased.modeler.figures.ModelerFigure#drawFigure()

paintFigure

protected void paintFigure(org.eclipse.draw2d.Graphics graphics)
Add the dashed line of the lifeline and the cross for the destruction event if necessary

See Also:
Figure.paintFigure(org.eclipse.draw2d.Graphics)

setHasDestructionEvent

public void setHasDestructionEvent(boolean hasOne)
This method is used to update the DestructionEvent representation inside the Lifeline figure

Parameters:
hasOne - true if the cross should be displayed

getHeaderBounds

public org.eclipse.draw2d.geometry.Rectangle getHeaderBounds()
Return the bounds of the header

Returns:
the bounds of the header

getHeaderFigure

public org.eclipse.draw2d.IFigure getHeaderFigure()
Get the Header figure. Used to link a comment to a Lifeline.

Returns:
IFigure the header figure

UML

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