@Override
public void adjustmentValueChanged(AdjustmentEvent e) {
visuals.grid.setDY(bar.getValue());
// set time in model.
RoughTime startTime=visuals.grid.getFirstDrawnTime();
Interval viewInterval=getModel().getViewInterval();
if (viewInterval!=null)
{
viewInterval.translateTo(startTime.getTime());
}
calendarPanel.drawVisualization();
calendarPanel.repaint();
}