@Test public void testConstruct() { verify(floatingView, times(1)).clearTimeOut(); verify(floatingView, times(1)).setOffsetX(eq(0d)); verify(floatingView, times(1)).setOffsetY(eq(0d)); verify(floatingView, times(1)).hide(); verify(floatingView, never()).show(); }
@PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; }
ZoomLevelSelectorPresenter { @PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; } }
ZoomLevelSelectorPresenter { @PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); }
ZoomLevelSelectorPresenter { @PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); @PostConstruct void construct(); ZoomLevelSelectorPresenter init(final Supplier<LienzoCanvas> canvas); ZoomLevelSelectorPresenter setMinScale(double minScale); ZoomLevelSelectorPresenter setMaxScale(double maxScale); ZoomLevelSelectorPresenter setZoomFactor(double zoomFactor); ZoomLevelSelectorPresenter at(final double x,
                                         final double y); ZoomLevelSelectorPresenter show(); ZoomLevelSelectorPresenter hide(); @PreDestroy void destroy(); }
ZoomLevelSelectorPresenter { @PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; } @Inject  ZoomLevelSelectorPresenter(final ClientTranslationService translationService,
                                      final FloatingView<IsWidget> floatingView,
                                      final ZoomLevelSelector selector); @PostConstruct void construct(); ZoomLevelSelectorPresenter init(final Supplier<LienzoCanvas> canvas); ZoomLevelSelectorPresenter setMinScale(double minScale); ZoomLevelSelectorPresenter setMaxScale(double maxScale); ZoomLevelSelectorPresenter setZoomFactor(double zoomFactor); ZoomLevelSelectorPresenter at(final double x,
                                         final double y); ZoomLevelSelectorPresenter show(); ZoomLevelSelectorPresenter hide(); @PreDestroy void destroy();  }