@Test public void testApplyCustomProperties() { final DecisionServiceDividerLineY divider = new DecisionServiceDividerLineY(25.0); when(decisionServiceDefinition.getDividerLineY()).thenReturn(divider); svgMutableShape.applyCustomProperties(decisionServiceNode, mutationContext); verify(view).setDividerLineY(eq(25.0)); }
@Override protected void applyCustomProperties(final Node<View<DecisionService>, Edge> element, final MutationContext mutationContext) { final DecisionService instance = getDefinition(element); final DecisionServiceSVGShapeView decisionServiceSVGShapeView = (DecisionServiceSVGShapeView) getShapeView(); decisionServiceSVGShapeView.setDividerLineY(instance.getDividerLineY().getValue()); }
DMNDecisionServiceSVGMutableShapeImpl extends SVGMutableShapeImpl<DecisionService, DMNDecisionServiceSVGShapeDef> { @Override protected void applyCustomProperties(final Node<View<DecisionService>, Edge> element, final MutationContext mutationContext) { final DecisionService instance = getDefinition(element); final DecisionServiceSVGShapeView decisionServiceSVGShapeView = (DecisionServiceSVGShapeView) getShapeView(); decisionServiceSVGShapeView.setDividerLineY(instance.getDividerLineY().getValue()); } }
DMNDecisionServiceSVGMutableShapeImpl extends SVGMutableShapeImpl<DecisionService, DMNDecisionServiceSVGShapeDef> { @Override protected void applyCustomProperties(final Node<View<DecisionService>, Edge> element, final MutationContext mutationContext) { final DecisionService instance = getDefinition(element); final DecisionServiceSVGShapeView decisionServiceSVGShapeView = (DecisionServiceSVGShapeView) getShapeView(); decisionServiceSVGShapeView.setDividerLineY(instance.getDividerLineY().getValue()); } DMNDecisionServiceSVGMutableShapeImpl(final DMNDecisionServiceSVGShapeDef shapeDef,
                                                 final SVGShapeViewImpl view); }
DMNDecisionServiceSVGMutableShapeImpl extends SVGMutableShapeImpl<DecisionService, DMNDecisionServiceSVGShapeDef> { @Override protected void applyCustomProperties(final Node<View<DecisionService>, Edge> element, final MutationContext mutationContext) { final DecisionService instance = getDefinition(element); final DecisionServiceSVGShapeView decisionServiceSVGShapeView = (DecisionServiceSVGShapeView) getShapeView(); decisionServiceSVGShapeView.setDividerLineY(instance.getDividerLineY().getValue()); } DMNDecisionServiceSVGMutableShapeImpl(final DMNDecisionServiceSVGShapeDef shapeDef,
                                                 final SVGShapeViewImpl view);  }
DMNDecisionServiceSVGMutableShapeImpl extends SVGMutableShapeImpl<DecisionService, DMNDecisionServiceSVGShapeDef> { @Override protected void applyCustomProperties(final Node<View<DecisionService>, Edge> element, final MutationContext mutationContext) { final DecisionService instance = getDefinition(element); final DecisionServiceSVGShapeView decisionServiceSVGShapeView = (DecisionServiceSVGShapeView) getShapeView(); decisionServiceSVGShapeView.setDividerLineY(instance.getDividerLineY().getValue()); } DMNDecisionServiceSVGMutableShapeImpl(final DMNDecisionServiceSVGShapeDef shapeDef,
                                                 final SVGShapeViewImpl view);   }