@Test public void testNewViewInstance() { final DecisionService decisionService = new DecisionService(); shapeDef.newViewInstance(viewFactory, decisionService); verify(viewFactory).decisionService(); verify(viewResource).build(decisionService.getDimensionsSet().getWidth().getValue(), decisionService.getDimensionsSet().getHeight().getValue(), true); }
@Override public SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory, final DecisionService bean) { final double width = bean.getDimensionsSet().getWidth().getValue(); final double height = bean.getDimensionsSet().getHeight().getValue(); return VIEW_RESOURCES .getResource(factory, bean) .build(width, height, true); }
DMNDecisionServiceSVGShapeDefImpl implements DMNDecisionServiceSVGShapeDef { @Override public SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory, final DecisionService bean) { final double width = bean.getDimensionsSet().getWidth().getValue(); final double height = bean.getDimensionsSet().getHeight().getValue(); return VIEW_RESOURCES .getResource(factory, bean) .build(width, height, true); } }
DMNDecisionServiceSVGShapeDefImpl implements DMNDecisionServiceSVGShapeDef { @Override public SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory, final DecisionService bean) { final double width = bean.getDimensionsSet().getWidth().getValue(); final double height = bean.getDimensionsSet().getHeight().getValue(); return VIEW_RESOURCES .getResource(factory, bean) .build(width, height, true); }  }
DMNDecisionServiceSVGShapeDefImpl implements DMNDecisionServiceSVGShapeDef { @Override public SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory, final DecisionService bean) { final double width = bean.getDimensionsSet().getWidth().getValue(); final double height = bean.getDimensionsSet().getHeight().getValue(); return VIEW_RESOURCES .getResource(factory, bean) .build(width, height, true); }  @Override Class<DMNDecisionServiceSVGViewFactory> getViewFactoryType(); @Override SizeHandler<DecisionService, SVGShapeView> newSizeHandler(); @Override FontHandler<DecisionService, SVGShapeView> newFontHandler(); @Override SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory,
                                           final DecisionService bean); @Override Glyph getGlyph(final Class<? extends DecisionService> type,
                          final Class<? extends ShapeFactory.GlyphConsumer> consumer,
                          final String defId); }
DMNDecisionServiceSVGShapeDefImpl implements DMNDecisionServiceSVGShapeDef { @Override public SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory, final DecisionService bean) { final double width = bean.getDimensionsSet().getWidth().getValue(); final double height = bean.getDimensionsSet().getHeight().getValue(); return VIEW_RESOURCES .getResource(factory, bean) .build(width, height, true); }  @Override Class<DMNDecisionServiceSVGViewFactory> getViewFactoryType(); @Override SizeHandler<DecisionService, SVGShapeView> newSizeHandler(); @Override FontHandler<DecisionService, SVGShapeView> newFontHandler(); @Override SVGShapeView<?> newViewInstance(final DMNDecisionServiceSVGViewFactory factory,
                                           final DecisionService bean); @Override Glyph getGlyph(final Class<? extends DecisionService> type,
                          final Class<? extends ShapeFactory.GlyphConsumer> consumer,
                          final String defId); static final SVGShapeViewResources<DMNDefinition, DMNDecisionServiceSVGViewFactory> VIEW_RESOURCES; static final Map<Class<? extends DMNDefinition>, Glyph> GLYPHS_PALETTE; }