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

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

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

Rectangle.setDashArray介绍

暂无

代码示例

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public RectangleSelectionProvider build()
{
  shape = new Rectangle(1, 1).setStrokeWidth(1).setDashArray(5, 5).setStrokeColor("#0000CC");
  return this;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public RectangleSelectionProvider build()
{
  shape = new Rectangle(1, 1).setStrokeWidth(1).setDashArray(5, 5).setStrokeColor("#0000CC");
  return this;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public RectangleSelectionProvider build()
{
  shape = new Rectangle(1, 1).setStrokeWidth(1).setDashArray(5, 5).setStrokeColor("#0000CC");
  return this;
}

代码示例来源: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-bpmn-client

private SVGShapeView eventSubProcessView(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__ZJ6G").setX(0.00).setY(0.00).setAlpha(1.00).setListening(true).setScale(1.00,1.00).setOffset(0.00,0.00).setFillColor("#fafafa"), true, null);

  final SVGShapeView view = getViewBuilder().build("eventSubProcess", 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(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);

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

相关文章