org.processmining.analysis.performance.sequence
Class LifeLine

java.lang.Object
  extended by org.processmining.analysis.performance.sequence.LifeLine

public class LifeLine
extends java.lang.Object

Class that represents the lifeline of a data-element instance.

Version:
1.0
Author:
Peter T.G. Hornix (p.t.g.hornix@student.tue.nl)

Constructor Summary
LifeLine(java.lang.String dataElt, double height)
          Constructor to initialize the lifeline
 
Method Summary
 void drawLifeLine(java.awt.Graphics2D g, double scale)
          Draws the name of a data-element in a box and draws a life line from the middle of this rectangle to the bottom of the sequence diagram panel.
 java.lang.String getElt()
           
 double getMiddle()
          Returns the x-coordinate of the middle position of the data-element box
 double getWidth()
          Returns the width of the data-element box
 void setBeginPosition(int beginPosition)
          Sets the begin position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeLine

public LifeLine(java.lang.String dataElt,
                double height)
Constructor to initialize the lifeline

Parameters:
dataElt - String
height - double
Method Detail

getElt

public java.lang.String getElt()

getWidth

public double getWidth()
Returns the width of the data-element box

Returns:
double

getMiddle

public double getMiddle()
Returns the x-coordinate of the middle position of the data-element box

Returns:
double

setBeginPosition

public void setBeginPosition(int beginPosition)
Sets the begin position

Parameters:
beginPosition - int

drawLifeLine

public void drawLifeLine(java.awt.Graphics2D g,
                         double scale)
Draws the name of a data-element in a box and draws a life line from the middle of this rectangle to the bottom of the sequence diagram panel.

Parameters:
g - Graphics2D
scale - double