public class PSDLifeLine
extends java.lang.Object
Constructor and Description |
---|
PSDLifeLine(java.lang.String dataElt,
double height)
Constructor to initialize the lifeline
|
Modifier and Type | Method and Description |
---|---|
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
|
public PSDLifeLine(java.lang.String dataElt, double height)
dataElt
- Stringheight
- doublepublic java.lang.String getElt()
public double getWidth()
public double getMiddle()
public void setBeginPosition(int beginPosition)
beginPosition
- intpublic void drawLifeLine(java.awt.Graphics2D g, double scale)
g
- Graphics2Dscale
- double