Class PSDBlock

    • Constructor Summary

      Constructors 
      Constructor Description
      PSDBlock​(java.lang.String dataElement)
      constructor to initialize the block
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void drawBlock​(double startX, java.awt.Color thisColor, java.awt.Graphics2D g)
      Draws the data-element block on top of the the lifeline
      java.lang.String getDataElement()
      Returns the name of the data-element of this block
      java.util.Set<PSDArrow> getInArrows()
      Returns the arrows that end in this block
      java.util.Set<PSDArrow> getOutArrows()
      Returns the arrows that originate from this block
      int getSimilarIndex()
      returns the similarIndex
      boolean isInBlock​(java.awt.Point p, java.util.Map<java.lang.String,​PSDLifeLine> lifeLines, double scale)
      Returns true if point p is in this block
      void setEndAt​(double endAt)
      Sets the end position of this block
      void setInArrows​(java.util.Set<PSDArrow> inArrows)
      Sets the arrows that end in this block
      void setOutArrows​(java.util.Set<PSDArrow> outArrows)
      Sets the arrows that originate from this block
      void setSimilarIndex​(int similarIndex)
      sets similarIndex
      void setStartAt​(double startAt)
      Sets the starting position of this block
      • Methods inherited from class java.lang.Object

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

      • PSDBlock

        public PSDBlock​(java.lang.String dataElement)
        constructor to initialize the block
        Parameters:
        dataElement - String
    • Method Detail

      • getDataElement

        public java.lang.String getDataElement()
        Returns the name of the data-element of this block
        Returns:
        String
      • setStartAt

        public void setStartAt​(double startAt)
        Sets the starting position of this block
        Parameters:
        startAt - double
      • setEndAt

        public void setEndAt​(double endAt)
        Sets the end position of this block
        Parameters:
        endAt - double
      • setSimilarIndex

        public void setSimilarIndex​(int similarIndex)
        sets similarIndex
        Parameters:
        similarIndex - int
      • getSimilarIndex

        public int getSimilarIndex()
        returns the similarIndex
        Returns:
        int
      • getInArrows

        public java.util.Set<PSDArrow> getInArrows()
        Returns the arrows that end in this block
        Returns:
        Set
      • setInArrows

        public void setInArrows​(java.util.Set<PSDArrow> inArrows)
        Sets the arrows that end in this block
        Parameters:
        inArrows - Set
      • getOutArrows

        public java.util.Set<PSDArrow> getOutArrows()
        Returns the arrows that originate from this block
        Returns:
        Set
      • setOutArrows

        public void setOutArrows​(java.util.Set<PSDArrow> outArrows)
        Sets the arrows that originate from this block
        Parameters:
        outArrows - Set
      • isInBlock

        public boolean isInBlock​(java.awt.Point p,
                                 java.util.Map<java.lang.String,​PSDLifeLine> lifeLines,
                                 double scale)
        Returns true if point p is in this block
        Parameters:
        p - Point
        lifeLines - Map
        scale - double
        Returns:
        boolean
      • drawBlock

        public void drawBlock​(double startX,
                              java.awt.Color thisColor,
                              java.awt.Graphics2D g)
        Draws the data-element block on top of the the lifeline
        Parameters:
        startX - double
        thisColor - Color
        g - Graphics2D