Class PSDLifeLine


  • public class PSDLifeLine
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PSDLifeLine​(java.lang.String dataElt, double height)
      Constructor to initialize the lifeline
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PSDLifeLine

        public PSDLifeLine​(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