Creating Milestones

Milestones identify a point in time and not a period in time, unlike other entries Milestones have a start but no end point.
milestone.jpg
Terminlogy speaking these are normally defined as zero time entries. E-GANTT deals with these differntly it specifies a start point as the milestone date and the end point as being the maximum point in time.

To use milestones you have to bear this in mind when you are choosing the painter this is why E-GANTT has specific painters for milestones these are:

  • BoundedDiamondPainter - for drawing a diamond symbol
  • BoundedBoxPainter - for drawing a box symbol
  • BoundedOvalPainter - for drawing a circle

To use these is easy use the GanttEntry.createMilestone method see an example below:

Object[][] data = {
{"Mary", "Campione",
"Snowboarding", new Integer(5), GanttEntryHelper.createMilestoneEntry(new Date(10), GanttDrawingContext.BOUNDED_BOX_PAINTER)},
{"Mary", "Campione",
"Snowboarding", new Integer(5), GanttEntryHelper.createMilestoneEntry(new Date(10), GanttDrawingContext.BOUNDED_DIAMOND_PAINTER)},
{"Mary", "Campione",
"Snowboarding", new Integer(5), GanttEntryHelper.createMilestoneEntry(new Date(10), GanttDrawingContext.BOUNDED_OVAL_PAINTER)}
 
};
external image sflogo.php?group_id=49356