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

public class DefaultGanttBarRenderer

  1. Object
  2. DefaultGanttBarRenderer

ImplementsGanttBarRenderer

The renderer a Gantt starts with: a rounded bar with its progress filled in, a bracket for a summary and a diamond for a milestone.

The colours come from GanttBar, GanttBarProgress, GanttBarCritical, GanttSummaryBar and GanttMilestone, or from the task’s own UIID or colour when it has one.

Constructors

public DefaultGanttBarRenderer()

Methods

public 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.
protected int colorOf(GanttTask task, String uiid, boolean foreground)The colour of a task: its own, its UIID’s, or the theme’s for its kind.

Inherited fields

Inherited methods

Constructor details

DefaultGanttBarRenderer

public DefaultGanttBarRenderer()

Method details

paintBar

public 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

colorOf

protected int colorOf(GanttTask task, String uiid, boolean foreground)
The colour of a task: its own, its UIID’s, or the theme’s for its kind.