Class Holiday


  • public class Holiday
    extends java.lang.Object
    One Holiday Object represents one Holiday/Spare/Special Day in the GANTT chart.

    This object can take an additional tooltip which pops up when hovering the mouse over a holiday.

    The Tooltip is only displayed when the tooltip is not null and ISettings.showHolidayToolTips() is configured to return true.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.graphics.Rectangle bounds  
      private java.util.Calendar date  
      private java.lang.String tooltip  
    • Constructor Summary

      Constructors 
      Constructor Description
      Holiday​(java.util.Calendar date)  
      Holiday​(java.util.Calendar date, java.lang.String tooltip)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) org.eclipse.swt.graphics.Rectangle getBounds()  
      java.util.Calendar getDate()  
      java.lang.String getTooltip()  
      boolean hasTooltip()  
      (package private) void resetBounds()  
      (package private) void updateBounds​(org.eclipse.swt.graphics.Rectangle rec)  
      void updateX​(int x)  
      void updateY​(int y)  
      • Methods inherited from class java.lang.Object

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

      • date

        private final java.util.Calendar date
      • tooltip

        private final java.lang.String tooltip
      • bounds

        private org.eclipse.swt.graphics.Rectangle bounds
    • Constructor Detail

      • Holiday

        public Holiday​(java.util.Calendar date)
      • Holiday

        public Holiday​(java.util.Calendar date,
                       java.lang.String tooltip)
    • Method Detail

      • resetBounds

        void resetBounds()
      • updateBounds

        void updateBounds​(org.eclipse.swt.graphics.Rectangle rec)
      • getBounds

        org.eclipse.swt.graphics.Rectangle getBounds()
      • getTooltip

        public java.lang.String getTooltip()
      • getDate

        public java.util.Calendar getDate()
      • updateX

        public void updateX​(int x)
      • updateY

        public void updateY​(int y)
      • hasTooltip

        public boolean hasTooltip()