private SVGShapeView diagramView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_DIAGRAMICON).setDraggable(false).setID("diagramIcon").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00), true, null); final SVGShapeView view = getViewBuilder().build("diagram", 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; }
private SVGShapeView intermediateNoneEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").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("intermediateNoneEvent", 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; }
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; }
private SVGShapeView businessKnowledgeModelView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_BUSINESSKNOWLEDGEMODEL__4RPW).setDraggable(false).setID("businessKnowledgeModel__4RPw").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(1.50), true, null); final SVGShapeView view = getViewBuilder().build("businessKnowledgeModel", 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; }
private SVGShapeView textAnnotationView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_TEXTANNOTATION__I4JQ).setDraggable(false).setID("textAnnotation__i4Jq").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(1.50), true, null); final SVGShapeView view = getViewBuilder().build("textAnnotation", 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; }
private SVGShapeView inputDataView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_INPUTDATA__8B1Z).setDraggable(false).setID("inputData__8B1Z").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(1.50), true, null); final SVGShapeView view = getViewBuilder().build("inputData", 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; }
private SVGShapeView knowledgeSourceView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_KNOWLEDGESOURCE__1SSA).setDraggable(false).setID("knowledgeSource__1SSA").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(1.50), true, null); final SVGShapeView view = getViewBuilder().build("knowledgeSource", 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; }
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; }
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; }
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; }
private SVGShapeView stageView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_STAGE__TAKV).setDraggable(false).setID("stage__Takv").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("stage", mainShape, width, height, resizable); SVGPrimitiveShape stage__JMKo = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_STAGE__JMKO).setDraggable(false).setID("stage__JMKo").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(stage__JMKo); 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(stage__JMKo)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE); } return view; }
private SVGShapeView laneView(final double width, final double height, final boolean resizable) { 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"), true, null); final SVGShapeView view = getViewBuilder().build("lane", mainShape, width, height, resizable); 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); 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(lane__zdpU)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE); } return view; }
private SVGShapeView embeddedSubProcessView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.Rectangle(650.00, 250.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("embeddedSubProcess", mainShape, width, height, resizable); 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(1.50), true, null); view.addChild(subProcess_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(subProcess_border)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.STROKE); } return view; }
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; }
private SVGShapeView startNoneEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#e8fae6"), true, null); final SVGShapeView view = getViewBuilder().build("startNoneEvent", mainShape, width, height, resizable); SVGContainer event_type = SVGPrimitiveFactory.newSVGContainer("event-type",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-type").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape start = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_START).setDraggable(false).setID("start").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#4aa241"), true, null);event_type.add(start); view.addChild(event_type); 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(start)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.FILL); } return view; }
private SVGShapeView endNoneEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#fce7e7"), true, null); final SVGShapeView view = getViewBuilder().build("endNoneEvent", mainShape, width, height, resizable); SVGContainer event_type = SVGPrimitiveFactory.newSVGContainer("event-type",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-type").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape end = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_END).setDraggable(false).setID("end").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#a30000"), true, null);event_type.add(end); view.addChild(event_type); 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(end)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.FILL); } return view; }
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; }
private SVGShapeView startErrorEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#e8fae6"), true, null); final SVGShapeView view = getViewBuilder().build("startErrorEvent", mainShape, width, height, resizable); SVGContainer event_type = SVGPrimitiveFactory.newSVGContainer("event-type",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-type").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape start = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_START).setDraggable(false).setID("start").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#4aa241"), true, null);event_type.add(start); view.addChild(event_type); SVGContainer event_subtypes = SVGPrimitiveFactory.newSVGContainer("event-subtypes",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-subtypes").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape error_catching = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_ERROR_CATCHING).setDraggable(false).setID("error-catching").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#4aa241"), true, null);event_subtypes.add(error_catching); view.addChild(event_subtypes); 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(start)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.FILL); } return view; }
private SVGShapeView startSignalEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#e8fae6"), true, null); final SVGShapeView view = getViewBuilder().build("startSignalEvent", mainShape, width, height, resizable); SVGContainer event_type = SVGPrimitiveFactory.newSVGContainer("event-type",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-type").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape start = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_START).setDraggable(false).setID("start").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#4aa241").setFillAlpha(1.00).setStrokeColor("#4aa241").setStrokeAlpha(0.00).setStrokeWidth(5.00).setDashArray(15.00,15.00), true, null);event_type.add(start); view.addChild(event_type); SVGContainer event_subtypes = SVGPrimitiveFactory.newSVGContainer("event-subtypes",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-subtypes").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape signal_catching = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SIGNAL_CATCHING).setDraggable(false).setID("signal-catching").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#4aa241"), true, null);event_subtypes.add(signal_catching); view.addChild(event_subtypes); 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(start)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.FILL); } return view; }
private SVGShapeView intermediateSignalCatchingEventView(final double width, final double height, final boolean resizable) { SVGPrimitiveShape mainShape = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_EVENT_BACKGROUND).setDraggable(false).setID("event-background").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#fbefcf"), true, null); final SVGShapeView view = getViewBuilder().build("intermediateSignalCatchingEvent", mainShape, width, height, resizable); SVGContainer event_type = SVGPrimitiveFactory.newSVGContainer("event-type",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-type").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape intermediate = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_INTERMEDIATE).setDraggable(false).setID("intermediate").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#e5a000").setFillAlpha(1.00).setStrokeColor("#e5a000").setStrokeAlpha(0.00).setStrokeWidth(5.00).setDashArray(15.00,15.00), true, null);event_type.add(intermediate); view.addChild(event_type); SVGContainer event_subtypes = SVGPrimitiveFactory.newSVGContainer("event-subtypes",new com.ait.lienzo.client.core.shape.Group().setDraggable(false).add( new com.ait.lienzo.client.core.shape.Group().setDraggable(false).setID("event-subtypes").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setListening(false) ), true, null);SVGPrimitiveShape signal_catching = SVGPrimitiveFactory.newSVGPrimitiveShape(new com.ait.lienzo.client.core.shape.MultiPath(VALUE_SIGNAL_CATCHING).setDraggable(false).setID("signal-catching").setX(0.00).setY(0.00).setAlpha(1.00).setListening(false).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#e5a000"), true, null);event_subtypes.add(signal_catching); view.addChild(event_subtypes); 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(intermediate)); ((SVGShapeViewImpl) view).getShapeStateHandler().setRenderType(org.kie.workbench.common.stunner.client.lienzo.shape.impl.ShapeStateDefaultHandler.RenderType.FILL); } return view; }