@Test public void testInitialize() { assertEquals(tested, tested.initialize(panel, settings)); verify(panel, times(1)).show(eq(lienzoLayer)); verify(panelStyle, times(1)).setBackgroundColor(eq(LienzoCanvasView.BG_COLOR)); verify(topLayer, times(1)).add(eq(decorator)); }
@Override public LienzoCanvasView<L> add(final ShapeView<?> shape) { getLayer().add((IPrimitive<?>) shape); return this; }
LienzoCanvasView extends AbstractCanvasView<LienzoCanvasView> { @Override public LienzoCanvasView<L> add(final ShapeView<?> shape) { getLayer().add((IPrimitive<?>) shape); return this; } }
LienzoCanvasView extends AbstractCanvasView<LienzoCanvasView> { @Override public LienzoCanvasView<L> add(final ShapeView<?> shape) { getLayer().add((IPrimitive<?>) shape); return this; } LienzoCanvasView();  LienzoCanvasView(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFactory); }
LienzoCanvasView extends AbstractCanvasView<LienzoCanvasView> { @Override public LienzoCanvasView<L> add(final ShapeView<?> shape) { getLayer().add((IPrimitive<?>) shape); return this; } LienzoCanvasView();  LienzoCanvasView(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFactory); abstract L getLayer(); @Override LienzoCanvasView<L> add(final ShapeView<?> shape); @Override LienzoCanvasView<L> delete(final ShapeView<?> shape); @Override LienzoCanvasView<L> setGrid(final CanvasGrid grid); LienzoCanvasView<L> setDecoratorFactory(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFatory); @Override LienzoCanvasView<L> clear(); @Override Transform getTransform(); LienzoPanel getLienzoPanel(); }
LienzoCanvasView extends AbstractCanvasView<LienzoCanvasView> { @Override public LienzoCanvasView<L> add(final ShapeView<?> shape) { getLayer().add((IPrimitive<?>) shape); return this; } LienzoCanvasView();  LienzoCanvasView(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFactory); abstract L getLayer(); @Override LienzoCanvasView<L> add(final ShapeView<?> shape); @Override LienzoCanvasView<L> delete(final ShapeView<?> shape); @Override LienzoCanvasView<L> setGrid(final CanvasGrid grid); LienzoCanvasView<L> setDecoratorFactory(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFatory); @Override LienzoCanvasView<L> clear(); @Override Transform getTransform(); LienzoPanel getLienzoPanel();  }