@Test public void resetX() { Mockito.when(plot.getAxisOrientationSetting()).thenReturn(AxisOrientationSetting.X_AXIS_AS_TIME); plot.setNonTimeMinFixedByPlotSettings(false); plot.setNonTimeMaxFixedByPlotSettings(false); pcm.resetX(); verify(plot, never()).setNonTimeMinFixed(false); verify(plot, never()).setNonTimeMaxFixed(false); Mockito.when(plot.getAxisOrientationSetting()).thenReturn(AxisOrientationSetting.Y_AXIS_AS_TIME); Mockito.when(plot.isPaused()).thenReturn(true); pcm.resetX(); verify(plot).setNonTimeMinFixed(false); verify(plot).setNonTimeMaxFixed(false); Mockito.when(plot.isPaused()).thenReturn(false); pcm.resetX(); verify(plot, atLeastOnce()).setNonTimeMinFixed(false); verify(plot, atLeastOnce()).setNonTimeMaxFixed(false); }
void resetX() { if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) { resetTimeAxis(); } else { resetNonTimeAxis(); } if (!plot.getLimitManager().isUntranslated()) { plot.getLimitManager().setModeUntranslated(true); } }
PlotCornerResetButtonManager { void resetX() { if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) { resetTimeAxis(); } else { resetNonTimeAxis(); } if (!plot.getLimitManager().isUntranslated()) { plot.getLimitManager().setModeUntranslated(true); } } }
PlotCornerResetButtonManager { void resetX() { if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) { resetTimeAxis(); } else { resetNonTimeAxis(); } if (!plot.getLimitManager().isUntranslated()) { plot.getLimitManager().setModeUntranslated(true); } } PlotCornerResetButtonManager(PlotterPlot thePlot); }
PlotCornerResetButtonManager { void resetX() { if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) { resetTimeAxis(); } else { resetNonTimeAxis(); } if (!plot.getLimitManager().isUntranslated()) { plot.getLimitManager().setModeUntranslated(true); } } PlotCornerResetButtonManager(PlotterPlot thePlot); void updateButtons(); }
PlotCornerResetButtonManager { void resetX() { if (plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME) { resetTimeAxis(); } else { resetNonTimeAxis(); } if (!plot.getLimitManager().isUntranslated()) { plot.getLimitManager().setModeUntranslated(true); } } PlotCornerResetButtonManager(PlotterPlot thePlot); void updateButtons();  }