MockitoAnnotations.initMocks(this);
labelingAlgorithm = new AbbreviatingPlotLabelingAlgorithm();
}
private PlotConfiguration initSettings(long minTime, long maxTime, boolean pinAxis, TimeAxisSubsequentBoundsSetting subsequentSetting) {
PlotConfiguration settings = new PlotSettings();
settings.setAxisOrientationSetting(AxisOrientationSetting.X_AXIS_AS_TIME);
settings.setXAxisMaximumLocation(XAxisMaximumLocationSetting.MAXIMUM_AT_RIGHT);
settings.setYAxisMaximumLocation(YAxisMaximumLocationSetting.MAXIMUM_AT_TOP);
settings.setNonTimeAxisSubsequentMaxSetting(NonTimeAxisSubsequentBoundsSetting.SEMI_FIXED);
settings.setNonTimeAxisSubsequentMinSetting(NonTimeAxisSubsequentBoundsSetting.SEMI_FIXED);
settings.setTimeAxisSubsequentSetting(subsequentSetting);
settings.setMinTime(minTime);
settings.setMaxTime(maxTime);
settings.setPinTimeAxis(pinAxis);
return settings;
}