org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.Width.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.Width.<init>()方法的一些代码示例,展示了Width.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Width.<init>()方法的具体详情如下:
包路径:org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.Width
类名称:Width
方法名:<init>

Width.<init>介绍

暂无

代码示例

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-api

public RectangleDimensionsSet(final Double width,
               final Double height) {
  this(new Width(width),
     new Height(height));
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-api

public RectangleDimensionsSet() {
  this(new Width(),
     new Height());
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-client

@Override
public SVGShapeView<?> newViewInstance(final CaseManagementSVGViewFactory factory,
                    final BPMNViewDefinition bean) {
  return newViewInstance(Optional.of(new Width(0d)),
              Optional.of(new Height(0d)),
              factory.task());
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-project-client

@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);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getDiagramSet().setName(new Name("Case"));
root.getDiagramSet().setId(new Id("New Case Management diagram"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));
View<CaseManagementDiagram> rootContent = new ViewImpl<>(root, Bounds.create(0.0, 0.0, 2800.0, 1400.0));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getDiagramSet().setName(new Name("SubprocessTest"));
root.getDiagramSet().setId(new Id("SubprocessTest"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getDiagramSet().setName(new Name("SubcaseTest"));
root.getDiagramSet().setId(new Id("SubcaseTest"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getDiagramSet().setName(new Name("StageTest"));
root.getDiagramSet().setId(new Id("StageTest"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getDiagramSet().setName(new Name("TaskTest"));
root.getDiagramSet().setId(new Id("TaskTest"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-backend

root.getCaseManagementSet().setCaseFileVariables(new CaseFileVariables("DiagramTest:Boolean"));
root.getDimensionsSet().setWidth(new Width(2800.0));
root.getDimensionsSet().setHeight(new Height(1400.0));

相关文章