Class AbstractGanttEvent

  • Direct Known Subclasses:
    GanttEvent, GanttGroup

    abstract class AbstractGanttEvent
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int _layer  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLayer()
      Returns the layer of this event.
      (package private) java.lang.Integer getLayerInt()  
      void setLayer​(int layer)
      Sets the layer of this event.
      • Methods inherited from class java.lang.Object

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

      • _layer

        private int _layer
    • Constructor Detail

      • AbstractGanttEvent

        AbstractGanttEvent()
    • Method Detail

      • getLayer

        public int getLayer()
        Returns the layer of this event. By default all events are on layer zero.
        Returns:
        Layer
      • getLayerInt

        java.lang.Integer getLayerInt()
      • setLayer

        public void setLayer​(int layer)
        Sets the layer of this event. Layers can be used for showing/hiding multiple events at the same time.

        Do note that layers are not layers in the sense of Photoshop layers or such where one layer is above another. Layers are simply an identifier to let you hide/show/alpha blend an entire set of objects with one method call.
        Parameters:
        layer - What layer this item belongs to.
        See Also:
        GanttComposite.hideLayer(int), GanttComposite.showLayer(int), GanttComposite.setLayerOpacity(int, int)