Interface GanttBarRenderer

All Known Implementing Classes:
DefaultGanttBarRenderer

public interface GanttBarRenderer
Paints one task of a Gantt chart: a bar, a summary bracket or a milestone. DefaultGanttBarRenderer is the one a chart starts with.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The task is on the critical path, and the chart is showing it.
    static final int
    The task is being dragged, and this is the copy under the pointer.
    static final int
    The pointer of a desktop rests on the bar.
    static final int
    The task is the selected one.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paintBar(Graphics g, Gantt gantt, GanttTask task, int x, int y, int width, int height, int state)
    Paints task into a rectangle: the span of its dates across and the height of a bar.
  • Field Details

    • SELECTED

      static final int SELECTED
      The task is the selected one.
      See Also:
    • CRITICAL

      static final int CRITICAL
      The task is on the critical path, and the chart is showing it.
      See Also:
    • DRAGGED

      static final int DRAGGED
      The task is being dragged, and this is the copy under the pointer.
      See Also:
    • HOVERED

      static final int HOVERED
      The pointer of a desktop rests on the bar. The chart lights the bar itself; a renderer that wants more can tell by this.
      See Also:
  • Method Details

    • paintBar

      void paintBar(Graphics g, Gantt gantt, GanttTask task, int x, int y, int width, int height, int state)

      Paints task into a rectangle: the span of its dates across and the height of a bar. For a milestone the rectangle is the square its mark is drawn in.

      Parameters
      • state: a combination of the constants of this interface