Class GanttBar

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class GanttBar
    extends java.lang.Object
    implements java.lang.Cloneable
    Definition of the bars in a Gantt chart.
    • Field Detail

      • fromTime

        public Limit fromTime
      • toTime

        public Limit toTime
      • value

        public int value
      • xStart

        public int xStart
      • xEnd

        public int xEnd
      • yStart

        public int yStart
      • yEnd

        public int yEnd
      • overlaps

        public boolean overlaps
    • Constructor Detail

      • GanttBar

        public GanttBar()
        Constructor
      • GanttBar

        public GanttBar​(Limit from,
                        Limit to,
                        java.math.BigDecimal globaltime,
                        int val)
        Constructor
        Parameters:
        from - - The start time
        to - - The stop time
        globaltime - - The global time
        val - - The associated Value of the bar
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • insideBar

        public boolean insideBar​(int x,
                                 int y)
        Is point (x,y) inside the bar?
        Parameters:
        x - - The coordinate x
        y - - The coordinate y
        Returns:
        True - The point is inside the bar
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException