//no tasks defined, nothing to do
if(min == null || max == null)
return;
TimeUnit defaultUnit = getTimeUnitStack().getDefaultTimeUnit();
final TaskLength selectionLength = getTaskManager().createLength(
defaultUnit, min.getTime(), max.getTime());
final TaskLength viewLength = getChartModel().getVisibleLength();
float viewLengthInDefaultUnits = viewLength.getLength(defaultUnit);
// if selection is shorter than view we'll scroll right,
// otherwise we'll scroll left
// delta is measured in the bottom line time units
final float delta = (selectionLength.getValue() - viewLengthInDefaultUnits) / 2;
scrollDate = GPCalendar.PLAIN.shiftDate(min.getTime(),