Class AbstractGanttEvent

java.lang.Object
org.eclipse.nebula.widgets.ganttchart.AbstractGanttEvent
Direct Known Subclasses:
GanttEvent, GanttGroup

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

    Constructors 
    Constructor Description
    AbstractGanttEvent()  
  • Method Summary

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

  • Method Details

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