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
FieldsModifier and TypeFieldDescriptionstatic final intThe task is on the critical path, and the chart is showing it.static final intThe task is being dragged, and this is the copy under the pointer.static final intThe pointer of a desktop rests on the bar.static final intThe task is the selected one. -
Method Summary
-
Field Details
-
SELECTED
static final int SELECTEDThe task is the selected one.- See Also:
-
CRITICAL
static final int CRITICALThe task is on the critical path, and the chart is showing it.- See Also:
-
DRAGGED
static final int DRAGGEDThe task is being dragged, and this is the copy under the pointer.- See Also:
-
HOVERED
static final int HOVEREDThe 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
taskinto 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
-