boolean urls) {
CategoryAxis categoryAxis = new CategoryAxis(categoryAxisLabel);
DateAxis dateAxis = new DateAxis(dateAxisLabel);
CategoryItemRenderer renderer = new GanttRenderer();
if (tooltips) {
renderer.setBaseToolTipGenerator(
new IntervalCategoryToolTipGenerator(
"{3} - {4}", DateFormat.getDateInstance()
)
);
}
if (urls) {
renderer.setBaseItemURLGenerator(
new StandardCategoryURLGenerator()
);
}
CategoryPlot plot = new CategoryPlot(