@Test public void testRestore() { tested.highlightBody(stunnerShape, "color"); tested.restore(); verify(unhighlightEvent, times(1)).fire(any(CanvasUnhighlightEvent.class)); verify(delegate, times(1)).restore(); verify(decorator, times(2)).animate(any(AnimationTweener.class), any(AnimationProperties.class), anyDouble(), any(IAnimationCallback.class)); }
@Override public void restore() { restoreAnimation(() -> { }); delegate.restore(); unhighlightEvent.fire(new CanvasUnhighlightEvent()); }
StunnerWiresShapeHighlight implements WiresShapeHighlight<PickerPart.ShapePart> { @Override public void restore() { restoreAnimation(() -> { }); delegate.restore(); unhighlightEvent.fire(new CanvasUnhighlightEvent()); } }
StunnerWiresShapeHighlight implements WiresShapeHighlight<PickerPart.ShapePart> { @Override public void restore() { restoreAnimation(() -> { }); delegate.restore(); unhighlightEvent.fire(new CanvasUnhighlightEvent()); } StunnerWiresShapeHighlight(final WiresManager wiresManager,
                                      final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresShapeHighlight(final Event<CanvasUnhighlightEvent> unhighlightEvent,
                               final WiresShapeHighlightImpl delegate); }
StunnerWiresShapeHighlight implements WiresShapeHighlight<PickerPart.ShapePart> { @Override public void restore() { restoreAnimation(() -> { }); delegate.restore(); unhighlightEvent.fire(new CanvasUnhighlightEvent()); } StunnerWiresShapeHighlight(final WiresManager wiresManager,
                                      final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresShapeHighlight(final Event<CanvasUnhighlightEvent> unhighlightEvent,
                               final WiresShapeHighlightImpl delegate); @Override void highlight(final WiresShape shape,
                          final PickerPart.ShapePart part); @Override void error(final WiresShape shape,
                      final PickerPart.ShapePart shapePart); @Override void restore(); }
StunnerWiresShapeHighlight implements WiresShapeHighlight<PickerPart.ShapePart> { @Override public void restore() { restoreAnimation(() -> { }); delegate.restore(); unhighlightEvent.fire(new CanvasUnhighlightEvent()); } StunnerWiresShapeHighlight(final WiresManager wiresManager,
                                      final Event<CanvasUnhighlightEvent> unhighlightEvent);   StunnerWiresShapeHighlight(final Event<CanvasUnhighlightEvent> unhighlightEvent,
                               final WiresShapeHighlightImpl delegate); @Override void highlight(final WiresShape shape,
                          final PickerPart.ShapePart part); @Override void error(final WiresShape shape,
                      final PickerPart.ShapePart shapePart); @Override void restore();  }