Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface GanttBarRenderer

Known subtypesDefaultGanttBarRenderer

Paints one task of a Gantt chart: a bar, a summary bracket or a milestone. DefaultGanttBarRenderer is the one a chart starts with.

Fields

public static final int SELECTED = 1The task is the selected one.
public static final int CRITICAL = 2The task is on the critical path, and the chart is showing it.
public static final int DRAGGED = 4The task is being dragged, and this is the copy under the pointer.
public static final int HOVERED = 8The pointer of a desktop rests on the bar.

Methods

public abstract 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

public static final int SELECTED = 1
The task is the selected one.

CRITICAL

public static final int CRITICAL = 2
The task is on the critical path, and the chart is showing it.

DRAGGED

public static final int DRAGGED = 4
The task is being dragged, and this is the copy under the pointer.

HOVERED

public static final int HOVERED = 8
The pointer of a desktop rests on the bar. The chart lights the bar itself; a renderer that wants more can tell by this.

Method details

paintBar

public abstract 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

g Graphics
Not documented.
gantt Gantt
Not documented.
task GanttTask
Not documented.
x int
Not documented.
y int
Not documented.
width int
Not documented.
height int
Not documented.
state int
a combination of the constants of this interface