com.ait.lienzo.client.core.shape.Rectangle.setID()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(32.4k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.setID方法的一些代码示例,展示了Rectangle.setID的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.setID方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:setID

Rectangle.setID介绍

暂无

代码示例

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

private SVGBasicShapeView rectangleBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(448.00, 448.00).setCornerRadius(15.00).setDraggable(false).setID("rectangle__O2Gz").setX(0.00).setY(0.00).setAlpha(0.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("rectangle", mainShape, width, height);


  return view;
}

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

private SVGBasicShapeView laneBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(0.00).setDraggable(false).setID("lane__KJXc").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#f2f2f2"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("lane", mainShape, width, height);

    SVGPrimitiveShape lane__zdpU = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(0.00).setDraggable(false).setID("lane__zdpU").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(0.50), true, null);
    view.addChild(lane__zdpU);

  return view;
}

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

@Before
public void setup() throws Exception {
  group = new Group().setID("cont1");
  rectangle = new Rectangle(10d, 10d).setID("rect1");
  someShape = new SVGPrimitiveShape(rectangle);
  tested = new SVGContainer("cont1",
               group,
               true,
               LayoutContainer.Layout.BOTTOM);
}

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

private SVGBasicShapeView noneTaskBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeAlpha(0.00), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("noneTask", mainShape, width, height);

    SVGPrimitiveShape task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(1.50), true, null);
    view.addChild(task_border);

  return view;
}

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

private SVGBasicShapeView rectangleBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(448.00, 448.00).setCornerRadius(15.00).setDraggable(false).setID("rectangle__sJZ2").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillAlpha(0.00).setStrokeColor("#000000").setStrokeWidth(5.00), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("rectangle", mainShape, width, height);


  return view;
}

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

private SVGShapeView noneTaskView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeAlpha(0.00), true, null);

  final SVGShapeView view = getViewBuilder().build("noneTask", mainShape, width, height, resizable);

    SVGPrimitiveShape task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(1.50), true, null);
    view.addChild(task_border);

  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(task_border));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGBasicShapeView reusableSubProcessBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("reusableSubProcess", mainShape, width, height);

    SVGPrimitiveShape subProcess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(subProcess_border);
    SVGContainer subProcess__D5TA = SVGPrimitiveFactory.newSVGContainer("subProcess__D5TA",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subProcess__D5TA").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), false, com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout.BOTTOM);SVGPrimitiveShape subProcess__D5TA__5wNY = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(25.00, 25.00).setCornerRadius(0.00).setDraggable(false).setID("subProcess__D5TA__5wNY").setX(63.00).setY(66.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillAlpha(0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), false, null);subProcess__D5TA.add(subProcess__D5TA__5wNY);SVGPrimitiveShape subProcess__D5TA__X9Hg = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__D5TA__X9HG).setDraggable(false).setID("subProcess__D5TA__X9Hg").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.04,0.04).setOffset(71.50,72.50).setFillColor("#000000").setStrokeColor("#000000"), false, null);subProcess__D5TA.add(subProcess__D5TA__X9Hg);
    view.addChild(subProcess__D5TA);

  return view;
}

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

private SVGShapeView rectangleView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(448.00, 448.00).setCornerRadius(15.00).setDraggable(false).setID("rectangle__O2Gz").setX(0.00).setY(0.00).setAlpha(0.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00), true, null);

  final SVGShapeView view = getViewBuilder().build("rectangle", mainShape, width, height, resizable);


  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(view));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGShapeView decisionServiceView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(200.00, 200.00).setCornerRadius(40.00).setDraggable(false).setID("decision__cSJx").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeColor("#000000").setStrokeWidth(3.00), true, null);

  final SVGShapeView view = getViewBuilder().build("decisionService", mainShape, width, height, resizable);


  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(10.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(0.00d);

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(view));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGShapeView decisionView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(100.00, 50.00).setCornerRadius(0.00).setDraggable(false).setID("decision__4TZ4").setX(6.50).setY(6.50).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeColor("#000000").setStrokeWidth(1.50), true, null);

  final SVGShapeView view = getViewBuilder().build("decision", mainShape, width, height, resizable);


  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(10.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(0.00d);

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(view));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGBasicShapeView userTaskBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeAlpha(0.00), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("userTask", mainShape, width, height);

    SVGPrimitiveShape task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(1.50), true, null);
    view.addChild(task_border);
    SVGContainer task__3Vio = SVGPrimitiveFactory.newSVGContainer("task__3Vio",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("task__3Vio").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.06,0.06).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape task__3Vio__949m = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TASK__3VIO__949M).setDraggable(false).setID("task__3Vio__949m").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44"), false, null);task__3Vio.add(task__3Vio__949m);
    view.addChild(task__3Vio);

  return view;
}

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

private SVGBasicShapeView multipleInstanceSubProcessBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(5.00).setDraggable(false).setID("subProcess-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("multipleInstanceSubProcess", mainShape, width, height);

    SVGPrimitiveShape subProcess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(5.00).setDraggable(false).setID("subProcess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(subProcess_border);
    SVGContainer subProcess__eBAS = SVGPrimitiveFactory.newSVGContainer("subProcess__eBAS",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subProcess__eBAS").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.05,0.05).setOffset(300.00,220.00).setListening(false) ), false, com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout.BOTTOM);SVGPrimitiveShape subProcess__eBAS__W83c = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__EBAS__W83C).setDraggable(false).setID("subProcess__eBAS__W83c").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#000000").setStrokeColor("#000000"), false, null);subProcess__eBAS.add(subProcess__eBAS__W83c);
    view.addChild(subProcess__eBAS);

  return view;
}

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

private SVGShapeView rectangleView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(448.00, 448.00).setCornerRadius(15.00).setDraggable(false).setID("rectangle__sJZ2").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillAlpha(0.00).setStrokeColor("#000000").setStrokeWidth(5.00), true, null);

  final SVGShapeView view = getViewBuilder().build("rectangle", mainShape, width, height, resizable);


  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(view));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGBasicShapeView eventSubProcessBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess__ZJ6G").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#fafafa"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("eventSubProcess", mainShape, width, height);

    SVGPrimitiveShape subProcess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(2.00).setDashArray(2.00,2.00), true, null);
    view.addChild(subProcess_border);
    SVGContainer subProcess__CyZF = SVGPrimitiveFactory.newSVGContainer("subProcess__CyZF",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subProcess__CyZF").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.05,0.05).setOffset(300.00,220.00).setListening(false) ), false, com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout.BOTTOM);SVGPrimitiveShape subProcess__CyZF__Kxy0 = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__CYZF__KXY0).setDraggable(false).setID("subProcess__CyZF__Kxy0").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00), false, null);subProcess__CyZF.add(subProcess__CyZF__Kxy0);
    view.addChild(subProcess__CyZF);

  return view;
}

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

private SVGBasicShapeView taskBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("user-task-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("task", mainShape, width, height);

    SVGPrimitiveShape user_task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("user-task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(user_task_border);
    SVGContainer user_task__QjXQ = SVGPrimitiveFactory.newSVGContainer("user-task__QjXQ",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("user-task__QjXQ").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.05,0.05).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape user_task__QjXQ__sdD4 = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_USER_TASK__QJXQ__SDD4).setDraggable(false).setID("user-task__QjXQ__sdD4").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44").setStrokeColor("#393f44"), false, null);user_task__QjXQ.add(user_task__QjXQ__sdD4);
    view.addChild(user_task__QjXQ);

  return view;
}

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

private SVGBasicShapeView subprocessBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("subprocess-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("subprocess", mainShape, width, height);

    SVGPrimitiveShape subprocess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("subprocess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(subprocess_border);
    SVGContainer subprocess__D5z3 = SVGPrimitiveFactory.newSVGContainer("subprocess__D5z3",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subprocess__D5z3").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.05,0.05).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape subprocess__D5z3__ieFS = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__D5Z3__IEFS).setDraggable(false).setID("subprocess__D5z3__ieFS").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44").setStrokeColor("#393f44"), false, null);subprocess__D5z3.add(subprocess__D5z3__ieFS);
    view.addChild(subprocess__D5z3);

  return view;
}

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

private SVGShapeView reusableSubProcessView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), true, null);

  final SVGShapeView view = getViewBuilder().build("reusableSubProcess", mainShape, width, height, resizable);

    SVGPrimitiveShape subProcess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("subProcess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(subProcess_border);
    SVGContainer subProcess__D5TA = SVGPrimitiveFactory.newSVGContainer("subProcess__D5TA",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subProcess__D5TA").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), false, com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout.BOTTOM);SVGPrimitiveShape subProcess__D5TA__5wNY = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(25.00, 25.00).setCornerRadius(0.00).setDraggable(false).setID("subProcess__D5TA__5wNY").setX(63.00).setY(66.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillAlpha(0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), false, null);subProcess__D5TA.add(subProcess__D5TA__5wNY);SVGPrimitiveShape subProcess__D5TA__X9Hg = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__D5TA__X9HG).setDraggable(false).setID("subProcess__D5TA__X9Hg").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.04,0.04).setOffset(71.50,72.50).setFillColor("#000000").setStrokeColor("#000000"), false, null);subProcess__D5TA.add(subProcess__D5TA__X9Hg);
    view.addChild(subProcess__D5TA);

  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(subProcess_border));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGShapeView userTaskView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeAlpha(0.00), true, null);

  final SVGShapeView view = getViewBuilder().build("userTask", mainShape, width, height, resizable);

    SVGPrimitiveShape task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(1.50), true, null);
    view.addChild(task_border);
    SVGContainer task__3Vio = SVGPrimitiveFactory.newSVGContainer("task__3Vio",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("task__3Vio").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.06,0.06).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape task__3Vio__949m = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TASK__3VIO__949M).setDraggable(false).setID("task__3Vio__949m").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44"), false, null);task__3Vio.add(task__3Vio__949m);
    view.addChild(task__3Vio);

  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(task_border));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGShapeView subprocessView(final double width, final double height, final boolean resizable) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("subprocess-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff"), true, null);

  final SVGShapeView view = getViewBuilder().build("subprocess", mainShape, width, height, resizable);

    SVGPrimitiveShape subprocess_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 100.00).setCornerRadius(2.00).setDraggable(false).setID("subprocess-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#393f44").setStrokeWidth(1.50), true, null);
    view.addChild(subprocess_border);
    SVGContainer subprocess__D5z3 = SVGPrimitiveFactory.newSVGContainer("subprocess__D5z3",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("subprocess__D5z3").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.05,0.05).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape subprocess__D5z3__ieFS = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SUBPROCESS__D5Z3__IEFS).setDraggable(false).setID("subprocess__D5z3__ieFS").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44").setStrokeColor("#393f44"), false, null);subprocess__D5z3.add(subprocess__D5z3__ieFS);
    view.addChild(subprocess__D5z3);

  view.setTitleAlpha(1.00d);view.setTitleFontFamily("Open Sans");view.setTitleFontSize(12.00d);view.setTitleFontColor("#000000");view.setTitleStrokeWidth(1.00d);view.setTitleStrokeColor("#393f44");

  if (view instanceof SVGShapeViewImpl) {
    ((SVGShapeViewImpl) view).getShapeStateHandler().setBorderShape(() -> SVGViewUtils.getVisibleShape(subprocess_border));
    ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE);
  }

  return view;
}

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

private SVGBasicShapeView scriptTaskBasicView(final double width, final double height) {

  SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#ffffff").setStrokeAlpha(0.00), false, null);

  final SVGBasicShapeViewImpl view = new SVGBasicShapeViewImpl("scriptTask", mainShape, width, height);

    SVGPrimitiveShape task_border = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(150.00, 98.00).setCornerRadius(2.00).setDraggable(false).setID("task-border").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setStrokeColor("#000000").setStrokeWidth(1.50), true, null);
    view.addChild(task_border);
    SVGContainer task__Utec = SVGPrimitiveFactory.newSVGContainer("task__Utec",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("task__Utec").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(0.06,0.06).setOffset(10.00,10.00).setListening(false) ), false, null);SVGPrimitiveShape task__Utec__ts1K = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TASK__UTEC__TS1K).setDraggable(false).setID("task__Utec__ts1K").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44"), false, null);task__Utec.add(task__Utec__ts1K);SVGPrimitiveShape task__Utec__U6ex = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TASK__UTEC__U6EX).setDraggable(false).setID("task__Utec__U6ex").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44"), false, null);task__Utec.add(task__Utec__U6ex);SVGPrimitiveShape task__Utec__NWQr = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TASK__UTEC__NWQR).setDraggable(false).setID("task__Utec__NWQr").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#393f44"), false, null);task__Utec.add(task__Utec__NWQr);
    view.addChild(task__Utec);

  return view;
}

相关文章