};
myTaskDefaultColorOption = new NewTaskColorOption();
myDefaultColorOptions = new ChartOptionGroup("ganttChartDefaultColors", new GPOption[] {myTaskDefaultColorOption, projectConfig.getWeekendAlphaRenderingOption()}, getOptionEventDispatcher());
{
myTaskAheadOfScheduleColor = new DefaultColorOption(
"ganttChartStateDiffColors.taskAheadOfScheduleColor") {
public void commit() {
super.commit();
projectConfig.setEarlierPreviousTaskColor(getValue());
}
};
myTaskAheadOfScheduleColor.lock();
myTaskAheadOfScheduleColor.setValue(new Color(50, 229, 50));
myTaskAheadOfScheduleColor.commit();
//
myTaskBehindScheduleColor = new DefaultColorOption(
"ganttChartStateDiffColors.taskBehindScheduleColor") {
public void commit() {
super.commit();
projectConfig.setLaterPreviousTaskColor(getValue());
}
};
myTaskBehindScheduleColor.lock();
myTaskBehindScheduleColor.setValue(new Color(229, 50, 50));
myTaskBehindScheduleColor.commit();
//
myTaskOnScheduleColor = new DefaultColorOption(
"ganttChartStateDiffColors.taskOnScheduleColor") {
public void commit() {
super.commit();
projectConfig.setPreviousTaskColor(getValue());
}