protected TimeGeometry getTimeGeometry(Interval interval) {
LocalDate start = new LocalDate(interval.getStart());
LocalDate finish = new LocalDate(interval.getFinish());
TimeGeometry timeGeometry = new DefaultTimeGeometry();
if (!isZoomByDayOrWeek()) {
start = getThursdayOfThisWeek(start);
finish = getThursdayOfThisWeek(finish);
}
timeGeometry.setMin(start.toDateTimeAtStartOfDay().toDate());
timeGeometry.setMax(finish.toDateTimeAtStartOfDay().toDate());
timeGeometry.setAxisLabelsPlacement("bottom");
// Remove year separators
timeGeometry.setGridColor("#FFFFFF");
return timeGeometry;
}