public RectangleDimensionsSet getRectangleDimensionsSet() { if (shape == null) { return new RectangleDimensionsSet(); } org.eclipse.dd.dc.Bounds bounds = shape.getBounds(); return new RectangleDimensionsSet(bounds.getWidth() * resolutionFactor, bounds.getHeight() * resolutionFactor); } }
public Lane() { this(new BPMNGeneralSet("Lane"), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet()); }
public CaseManagementDiagram() { this(new DiagramSet(""), new ProcessData(), new CaseManagementSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(WIDTH, HEIGHT)); }
public BPMNDiagramImpl() { this(new DiagramSet(), new ProcessData(), new CaseManagementSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(WIDTH, HEIGHT)); }
public MultipleInstanceSubprocess() { this(new BPMNGeneralSet("Multiple Instance Sub-process"), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new MultipleInstanceSubprocessTaskExecutionSet(), new ProcessData()); }
public EmbeddedSubprocess() { this( new BPMNGeneralSet("Sub-process"), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new EmbeddedSubprocessExecutionSet(), new ProcessData()); }
public ReusableSubprocess() { this(new BPMNGeneralSet("Sub-process"), new ReusableSubprocessTaskExecutionSet(), new DataIOSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet()); }
public AdHocSubprocess(String label) { this(new BPMNGeneralSet(label), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new AdHocSubprocessTaskExecutionSet(), new ProcessData()); }
public EventSubprocess() { this(new BPMNGeneralSet("Event Sub-process"), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new EventSubprocessExecutionSet(), new ProcessData()); }
public AdHocSubprocess(String label) { this(new BPMNGeneralSet(label), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new AdHocSubprocessTaskExecutionSet(), new ProcessData()); }
public ProcessReusableSubprocess() { this(new BPMNGeneralSet("Subprocess"), new ProcessReusableSubprocessTaskExecutionSet(), new DataIOSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet()); }
public CaseReusableSubprocess() { this(new BPMNGeneralSet("Subcase"), new CaseReusableSubprocessTaskExecutionSet(), new DataIOSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet()); }
@Before @SuppressWarnings("unchecked") public void init() { task = new ServiceTask(); task.setName(WID_ID); task.setDimensionsSet(new RectangleDimensionsSet()); width = spy(new Width(0d)); height = spy(new Height(0d)); task.getDimensionsSet().setWidth(width); task.getDimensionsSet().setHeight(height); when(registry.items()).thenReturn(Collections.singleton(DEF)); when(registry.get(eq(WID_ID))).thenReturn(DEF); when(view.getChildren()).thenReturn(Collections.singletonList(iconSVGPrimiite)); when(iconSVGPrimiite.getId()).thenReturn(ServiceTaskShapeViewHandler.WID_ICON_ID); when(iconSVGPrimiite.get()).thenReturn(icon); when(iconSVGPrimiite.getPrimitiveId()).thenReturn(ServiceTaskShapeViewHandler.WID_ICON_ID); when(icon.getID()).thenReturn(ServiceTaskShapeViewHandler.WID_ICON_ID); when(icon.getImageProxy()).thenReturn(imageProxy); when(view.getPrimitive()).thenReturn(iconSVGPrimiite); when(icon.getAttributes()).thenReturn(svgAttr); when(svgAttr.getHeight()).thenReturn(HEIGHT); when(svgAttr.getWidth()).thenReturn(WIDTH); this.tested = new ServiceTaskShapeViewHandler(() -> registry); }
public UserTask() { this(new TaskGeneralSet(new Name("Task"), new Documentation("")), new UserTaskExecutionSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.USER)); }
public NoneTask() { this(new TaskGeneralSet(new Name("Task"), new Documentation("")), new EmptyTaskExecutionSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.NONE)); }
public ScriptTask() { this(new TaskGeneralSet(new Name("Task"), new Documentation("")), new ScriptTaskExecutionSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.SCRIPT)); }
public BusinessRuleTask() { this(new TaskGeneralSet(new Name("Task"), new Documentation("")), new BusinessRuleTaskExecutionSet(), new DataIOSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.BUSINESS_RULE)); }
public ServiceTask() { this("Service Task", "Service Task", BPMNCategories.SERVICE_TASKS, "", new TaskGeneralSet(new Name("Service Task"), new Documentation()), new DataIOSet(), new ServiceTaskExecutionSet(), new BackgroundSet(), new FontSet(), new RectangleDimensionsSet(), new SimulationSet(), new TaskType(TaskTypes.SERVICE_TASK)); }