if (timeAxis instanceof XYAxis) { // Only decorate time-like axes; TODO: move to AbstractAxis?
timeSyncLinePlot = new XYMarkerLine((XYAxis) timeAxis, time.getTimeInMillis());
timeSyncLinePlot.setForeground(PlotConstants.TIME_SYNC_LINE_COLOR);
XYPlotContents contents = plot.getPlotView().getContents();
contents.add(timeSyncLinePlot);
contents.revalidate();
}
} else {
timeSyncLinePlot.setValue(time.getTimeInMillis());
}
}