Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class DefaultGanttBarRenderer
- Object
- 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
gGraphics- Not documented.
ganttGantt- Not documented.
taskGanttTask- Not documented.
xint- Not documented.
yint- Not documented.
widthint- Not documented.
heightint- Not documented.
stateint- 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.