@Test @SuppressWarnings("unchecked") public void testRegisterDelegates() { tested.registerDelegates(); final ArgumentCaptor<Supplier> factoryArgumentCaptor = ArgumentCaptor.forClass(Supplier.class); verify(delegateShapeFactory, times(1)).delegate(eq(BPMNDiagramImpl.class), any(BPMNDiagramShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(NoneTask.class), any(TaskShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(UserTask.class), any(TaskShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(ScriptTask.class), any(TaskShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(BusinessRuleTask.class), any(TaskShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartNoneEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartSignalEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartTimerEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartMessageEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartErrorEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartConditionalEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(StartEscalationEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(ParallelGateway.class), any(GatewayShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(ExclusiveGateway.class), any(GatewayShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(InclusiveGateway.class), any(GatewayShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EventGateway.class), any(GatewayShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(Lane.class), any(LaneShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(ReusableSubprocess.class), any(SubprocessShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EmbeddedSubprocess.class), any(SubprocessShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EventSubprocess.class), any(SubprocessShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(AdHocSubprocess.class), any(SubprocessShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(MultipleInstanceSubprocess.class), any(SubprocessShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndNoneEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndTerminateEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndErrorEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndSignalEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndMessageEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndEscalationEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateTimerEvent.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateConditionalEvent.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateSignalEventCatching.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateLinkEventCatching.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateErrorEventCatching.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateMessageEventCatching.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateEscalationEvent.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateSignalEventThrowing.class), any(ThrowingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateLinkEventThrowing.class), any(ThrowingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateMessageEventThrowing.class), any(ThrowingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateEscalationEventThrowing.class), any(ThrowingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); ArgumentCaptor<SequenceFlowConnectorDef> sequenceFlowConnectorDefArgumentCaptor = ArgumentCaptor.forClass(SequenceFlowConnectorDef.class); verify(delegateShapeFactory, times(1)).delegate(eq(StartCompensationEvent.class), any(StartEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateCompensationEvent.class), any(CatchingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(IntermediateCompensationEventThrowing.class), any(ThrowingIntermediateEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(EndCompensationEvent.class), any(EndEventShapeDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(DirectionalAssociation.class), any(AssociationConnectorDef.class), factoryArgumentCaptor.capture()); verify(delegateShapeFactory, times(1)).delegate(eq(SequenceFlow.class), sequenceFlowConnectorDefArgumentCaptor.capture(), factoryArgumentCaptor.capture()); final SequenceFlowConnectorDef sequenceFlowConnectorDef = sequenceFlowConnectorDefArgumentCaptor.getValue(); sequenceFlowConnectorDef.newFontHandler().handle(sequenceFlow, sequenceFlowView); verify(sequenceFlowView).setTitleFontColor(BPMNTextPreferences.TEXT_FILL_COLOR); verify(sequenceFlowView).setTitleAlpha(BPMNTextPreferences.TEXT_ALPHA); verify(sequenceFlowView).setTitleFontFamily(BPMNTextPreferences.TEXT_FONT_FAMILY); verify(sequenceFlowView).setTitleFontSize(BPMNTextPreferences.TEXT_FONT_SIZE); verify(sequenceFlowView).setTitleStrokeColor(BPMNTextPreferences.TEXT_STROKE_COLOR); verify(sequenceFlowView).setTitleStrokeWidth(BPMNTextPreferences.TEXT_STROKE_WIDTH); verify(sequenceFlowView).setTitleStrokeAlpha(0); final long svgFactoryCallCount = factoryArgumentCaptor.getAllValues().stream() .filter(this::isSvgShapeFactory) .count(); final long basicFactoryCallCount = factoryArgumentCaptor.getAllValues().stream() .filter(this::isBasicShapeFactory) .count(); assertEquals(43, svgFactoryCallCount, 0); assertEquals(2, basicFactoryCallCount, 0); }
@PostConstruct @SuppressWarnings("all") public void registerDelegates() { delegateShapeFactory .delegate(BPMNDiagramImpl.class, new BPMNDiagramShapeDef(), () -> svgShapeFactory) .delegate(NoneTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(GenericServiceTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(UserTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(ScriptTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(BusinessRuleTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(CustomTask.class, new CustomTaskShapeDef(workItemDefinitionRegistry), () -> svgShapeFactory) .delegate(StartNoneEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartSignalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartTimerEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartMessageEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartErrorEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartConditionalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartEscalationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartCompensationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(ParallelGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(ExclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(InclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(EventGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(Lane.class, new LaneShapeDef(), () -> svgShapeFactory) .delegate(ReusableSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EmbeddedSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EventSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(AdHocSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(MultipleInstanceSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EndNoneEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndSignalEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndMessageEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndTerminateEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndErrorEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndEscalationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndCompensationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateTimerEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateConditionalEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateErrorEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(SequenceFlow.class, new SequenceFlowConnectorDef(() -> getFontHandler()), () -> basicShapesFactory) .delegate(DirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(NonDirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(TextAnnotation.class, new TextAnnotationShapeDef(), () -> svgShapeFactory) .delegate(DataObject.class, new DataObjectShapeDef(), () -> svgShapeFactory); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @PostConstruct @SuppressWarnings("all") public void registerDelegates() { delegateShapeFactory .delegate(BPMNDiagramImpl.class, new BPMNDiagramShapeDef(), () -> svgShapeFactory) .delegate(NoneTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(GenericServiceTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(UserTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(ScriptTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(BusinessRuleTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(CustomTask.class, new CustomTaskShapeDef(workItemDefinitionRegistry), () -> svgShapeFactory) .delegate(StartNoneEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartSignalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartTimerEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartMessageEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartErrorEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartConditionalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartEscalationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartCompensationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(ParallelGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(ExclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(InclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(EventGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(Lane.class, new LaneShapeDef(), () -> svgShapeFactory) .delegate(ReusableSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EmbeddedSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EventSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(AdHocSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(MultipleInstanceSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EndNoneEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndSignalEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndMessageEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndTerminateEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndErrorEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndEscalationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndCompensationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateTimerEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateConditionalEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateErrorEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(SequenceFlow.class, new SequenceFlowConnectorDef(() -> getFontHandler()), () -> basicShapesFactory) .delegate(DirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(NonDirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(TextAnnotation.class, new TextAnnotationShapeDef(), () -> svgShapeFactory) .delegate(DataObject.class, new DataObjectShapeDef(), () -> svgShapeFactory); } }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @PostConstruct @SuppressWarnings("all") public void registerDelegates() { delegateShapeFactory .delegate(BPMNDiagramImpl.class, new BPMNDiagramShapeDef(), () -> svgShapeFactory) .delegate(NoneTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(GenericServiceTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(UserTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(ScriptTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(BusinessRuleTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(CustomTask.class, new CustomTaskShapeDef(workItemDefinitionRegistry), () -> svgShapeFactory) .delegate(StartNoneEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartSignalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartTimerEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartMessageEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartErrorEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartConditionalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartEscalationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartCompensationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(ParallelGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(ExclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(InclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(EventGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(Lane.class, new LaneShapeDef(), () -> svgShapeFactory) .delegate(ReusableSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EmbeddedSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EventSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(AdHocSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(MultipleInstanceSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EndNoneEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndSignalEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndMessageEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndTerminateEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndErrorEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndEscalationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndCompensationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateTimerEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateConditionalEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateErrorEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(SequenceFlow.class, new SequenceFlowConnectorDef(() -> getFontHandler()), () -> basicShapesFactory) .delegate(DirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(NonDirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(TextAnnotation.class, new TextAnnotationShapeDef(), () -> svgShapeFactory) .delegate(DataObject.class, new DataObjectShapeDef(), () -> svgShapeFactory); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @PostConstruct @SuppressWarnings("all") public void registerDelegates() { delegateShapeFactory .delegate(BPMNDiagramImpl.class, new BPMNDiagramShapeDef(), () -> svgShapeFactory) .delegate(NoneTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(GenericServiceTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(UserTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(ScriptTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(BusinessRuleTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(CustomTask.class, new CustomTaskShapeDef(workItemDefinitionRegistry), () -> svgShapeFactory) .delegate(StartNoneEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartSignalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartTimerEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartMessageEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartErrorEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartConditionalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartEscalationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartCompensationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(ParallelGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(ExclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(InclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(EventGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(Lane.class, new LaneShapeDef(), () -> svgShapeFactory) .delegate(ReusableSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EmbeddedSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EventSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(AdHocSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(MultipleInstanceSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EndNoneEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndSignalEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndMessageEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndTerminateEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndErrorEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndEscalationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndCompensationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateTimerEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateConditionalEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateErrorEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(SequenceFlow.class, new SequenceFlowConnectorDef(() -> getFontHandler()), () -> basicShapesFactory) .delegate(DirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(NonDirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(TextAnnotation.class, new TextAnnotationShapeDef(), () -> svgShapeFactory) .delegate(DataObject.class, new DataObjectShapeDef(), () -> svgShapeFactory); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); @PostConstruct @SuppressWarnings("all") void registerDelegates(); @Override @SuppressWarnings("all") Shape newShape(final BPMNDefinition definition); @Override @SuppressWarnings("all") Glyph getGlyph(final String definitionId); }
BPMNShapeFactory implements ShapeFactory<BPMNDefinition, Shape> { @PostConstruct @SuppressWarnings("all") public void registerDelegates() { delegateShapeFactory .delegate(BPMNDiagramImpl.class, new BPMNDiagramShapeDef(), () -> svgShapeFactory) .delegate(NoneTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(GenericServiceTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(UserTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(ScriptTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(BusinessRuleTask.class, new TaskShapeDef(), () -> svgShapeFactory) .delegate(CustomTask.class, new CustomTaskShapeDef(workItemDefinitionRegistry), () -> svgShapeFactory) .delegate(StartNoneEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartSignalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartTimerEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartMessageEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartErrorEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartConditionalEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartEscalationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(StartCompensationEvent.class, new StartEventShapeDef(), () -> svgShapeFactory) .delegate(ParallelGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(ExclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(InclusiveGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(EventGateway.class, new GatewayShapeDef(), () -> svgShapeFactory) .delegate(Lane.class, new LaneShapeDef(), () -> svgShapeFactory) .delegate(ReusableSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EmbeddedSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EventSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(AdHocSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(MultipleInstanceSubprocess.class, new SubprocessShapeDef(), () -> svgShapeFactory) .delegate(EndNoneEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndSignalEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndMessageEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndTerminateEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndErrorEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndEscalationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(EndCompensationEvent.class, new EndEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateTimerEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateConditionalEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateErrorEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventCatching.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEvent.class, new CatchingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateSignalEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateLinkEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateMessageEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateEscalationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(IntermediateCompensationEventThrowing.class, new ThrowingIntermediateEventShapeDef(), () -> svgShapeFactory) .delegate(SequenceFlow.class, new SequenceFlowConnectorDef(() -> getFontHandler()), () -> basicShapesFactory) .delegate(DirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(NonDirectionalAssociation.class, new AssociationConnectorDef(), () -> basicShapesFactory) .delegate(TextAnnotation.class, new TextAnnotationShapeDef(), () -> svgShapeFactory) .delegate(DataObject.class, new DataObjectShapeDef(), () -> svgShapeFactory); } protected  BPMNShapeFactory(); @Inject  BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                            final SVGShapeFactory svgShapeFactory,
                            final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                            final ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                            final DefinitionUtils definitionUtils,
                            final StunnerPreferencesRegistries preferencesRegistries);   BPMNShapeFactory(final BasicShapesFactory basicShapesFactory,
                     final SVGShapeFactory svgShapeFactory,
                     final DelegateShapeFactory<BPMNDefinition, Shape> delegateShapeFactory,
                     final Supplier<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                     final DefinitionUtils definitionUtils,
                     final StunnerPreferencesRegistries preferencesRegistries); @PostConstruct @SuppressWarnings("all") void registerDelegates(); @Override @SuppressWarnings("all") Shape newShape(final BPMNDefinition definition); @Override @SuppressWarnings("all") Glyph getGlyph(final String definitionId);  }