Class Holiday

java.lang.Object
org.eclipse.nebula.widgets.ganttchart.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.
  • Constructor Summary

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

    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
  • Constructor Details

    • Holiday

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

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

    • 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()