GregorianCalendar now = new GregorianCalendar();
GregorianCalendar nowPlus = new GregorianCalendar();
nowPlus.add(Calendar.MINUTE, 1);
originalPlotMan.setupPlot(new PlotSettings(AxisOrientationSetting.X_AXIS_AS_TIME,
anyTimeSystem,
TimeService.DEFAULT_TIME_FORMAT,
XAxisMaximumLocationSetting.MAXIMUM_AT_RIGHT,
YAxisMaximumLocationSetting.MAXIMUM_AT_TOP,
TimeAxisSubsequentBoundsSetting.JUMP,
NonTimeAxisSubsequentBoundsSetting.AUTO,
NonTimeAxisSubsequentBoundsSetting.AUTO,
nowPlus.getTimeInMillis(), now.getTimeInMillis(), 150, 100, 0.01, 0.20, 0.20, true, false,
PlotConstants.DEFAULT_PLOT_LINE_DRAW,
PlotLineConnectionType.STEP_X_THEN_Y));
// for coverage.
originalPlotMan.updateMonitoredGUI();
originalPlotMan.updateMonitoredGUI(new AddChildEvent(nowPlus, feed1Component));
originalPlotMan.updateMonitoredGUI(new RemoveChildEvent(nowPlus, feed1Component));
PlotView thePlotView = originalPlotMan.getPlot();
PlotConfiguration settings = new PlotPersistenceHandler(originalPlotMan).loadPlotSettingsFromPersistance();
PlotView secondPlotView = PlotViewFactory.createPlotFromSettings(settings, 1, plotLabelingAlgorithm);
// Should be different plots.
Assert.assertNotSame(thePlotView, secondPlotView);
originalPlotMan.setupPlot(new PlotSettings(AxisOrientationSetting.X_AXIS_AS_TIME,
anyTimeSystem,
TimeService.DEFAULT_TIME_FORMAT,
XAxisMaximumLocationSetting.MAXIMUM_AT_RIGHT,
YAxisMaximumLocationSetting.MAXIMUM_AT_TOP,
TimeAxisSubsequentBoundsSetting.SCRUNCH,