@Test public void testCalculateResolutionFactor() { BPMNDiagram diagram = mock(BPMNDiagram.class); when(diagram.getResolution()).thenReturn(0f); double factor = DefinitionResolver.calculateResolutionFactor(diagram); assertEquals(1d, factor, 0d); when(diagram.getResolution()).thenReturn(250f); factor = DefinitionResolver.calculateResolutionFactor(diagram); assertEquals(0.45d, factor, 0d); }
static double calculateResolutionFactor(final BPMNDiagram diagram) { final float resolution = diagram.getResolution(); return resolution == 0 ? 1 : obtainResolutionFactor() / resolution; }
DefinitionResolver { static double calculateResolutionFactor(final BPMNDiagram diagram) { final float resolution = diagram.getResolution(); return resolution == 0 ? 1 : obtainResolutionFactor() / resolution; } }
DefinitionResolver { static double calculateResolutionFactor(final BPMNDiagram diagram) { final float resolution = diagram.getResolution(); return resolution == 0 ? 1 : obtainResolutionFactor() / resolution; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); }
DefinitionResolver { static double calculateResolutionFactor(final BPMNDiagram diagram) { final float resolution = diagram.getResolution(); return resolution == 0 ? 1 : obtainResolutionFactor() / resolution; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); BPMNDiagram getDiagram(); double getResolutionFactor(); boolean isJbpm(); Definitions getDefinitions(); Process getProcess(); Mode getMode(); Collection<WorkItemDefinition> getWorkItemDefinitions(); Optional<Signal> resolveSignal(String id); String resolveSignalName(String id); Optional<ElementParameters> resolveSimulationParameters(String id); BPMNShape getShape(String elementId); BPMNEdge getEdge(String elementId); }
DefinitionResolver { static double calculateResolutionFactor(final BPMNDiagram diagram) { final float resolution = diagram.getResolution(); return resolution == 0 ? 1 : obtainResolutionFactor() / resolution; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); BPMNDiagram getDiagram(); double getResolutionFactor(); boolean isJbpm(); Definitions getDefinitions(); Process getProcess(); Mode getMode(); Collection<WorkItemDefinition> getWorkItemDefinitions(); Optional<Signal> resolveSignal(String id); String resolveSignalName(String id); Optional<ElementParameters> resolveSimulationParameters(String id); BPMNShape getShape(String elementId); BPMNEdge getEdge(String elementId);  }