@Test public void testAddChild() { tested.addChild(childShape); final Collection<SVGPrimitive<?>> svgChildren = tested.getChildren(); assertEquals(1, svgChildren.size()); assertEquals(childShape, svgChildren.iterator().next()); }
@Override public SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child) { childViewHandler.addChild(child); return this; }
SVGBasicShapeViewImpl extends WiresShapeView<SVGBasicShapeViewImpl> implements SVGBasicShapeView<SVGBasicShapeViewImpl> { @Override public SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child) { childViewHandler.addChild(child); return this; } }
SVGBasicShapeViewImpl extends WiresShapeView<SVGBasicShapeViewImpl> implements SVGBasicShapeView<SVGBasicShapeViewImpl> { @Override public SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child) { childViewHandler.addChild(child); return this; } SVGBasicShapeViewImpl(final String name,
                                 final SVGPrimitiveShape svgPrimitive,
                                 final double width,
                                 final double height); }
SVGBasicShapeViewImpl extends WiresShapeView<SVGBasicShapeViewImpl> implements SVGBasicShapeView<SVGBasicShapeViewImpl> { @Override public SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child) { childViewHandler.addChild(child); return this; } SVGBasicShapeViewImpl(final String name,
                                 final SVGPrimitiveShape svgPrimitive,
                                 final double width,
                                 final double height); @Override String getName(); @Override Shape<?> getShape(); @Override SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child); @Override Collection<SVGPrimitive<?>> getChildren(); @Override SVGPrimitive getPrimitive(); @Override @SuppressWarnings("unchecked") SVGBasicShapeViewImpl addSVGChild(final SVGContainer parent,
                                             final SVGBasicShapeView child); @Override Collection<SVGBasicShapeView> getSVGChildren(); @Override void destroy(); }
SVGBasicShapeViewImpl extends WiresShapeView<SVGBasicShapeViewImpl> implements SVGBasicShapeView<SVGBasicShapeViewImpl> { @Override public SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child) { childViewHandler.addChild(child); return this; } SVGBasicShapeViewImpl(final String name,
                                 final SVGPrimitiveShape svgPrimitive,
                                 final double width,
                                 final double height); @Override String getName(); @Override Shape<?> getShape(); @Override SVGBasicShapeViewImpl addChild(final SVGPrimitive<?> child); @Override Collection<SVGPrimitive<?>> getChildren(); @Override SVGPrimitive getPrimitive(); @Override @SuppressWarnings("unchecked") SVGBasicShapeViewImpl addSVGChild(final SVGContainer parent,
                                             final SVGBasicShapeView child); @Override Collection<SVGBasicShapeView> getSVGChildren(); @Override void destroy();  }