本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.<init>
方法的一些代码示例,展示了Rectangle.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.<init>
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:<init>
[英]Constructor. Creates an instance of a rectangle.
[中]建造师。创建矩形的实例。
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public Rectangle create(final JSONObject node, final ValidationContext ctx) throws ValidationException
{
return new Rectangle(node, ctx);
}
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getHeaderBackground(final GridColumn<?> column) {
final Rectangle header = new Rectangle(0,
0)
.setFillColor(ColorName.LAWNGREEN);
return header;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getHeaderLinkBackground(final GridColumn<?> column) {
final Rectangle link = new Rectangle(0,
0)
.setFillColor(ColorName.BROWN);
return link;
}
代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client
@Override
public Rectangle getBodyBackground(final GridColumn<?> column) {
final Rectangle r = new Rectangle(0, 0);
r.setFillColor(KIEColours.CELL_CONTENT);
return r;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getCellSelectorBackground() {
final Rectangle background = new Rectangle(0, 0)
.setFillColor(ColorName.BLUE)
.setAlpha(0.25);
return background;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getCellSelectorBackground() {
final Rectangle background = new Rectangle(0, 0)
.setFillColor(ColorName.PURPLE)
.setAlpha(0.25);
return background;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getBodyBackground(final GridColumn<?> column) {
if (column instanceof IsRowDragHandle) {
return getHeaderBackground(column);
}
final Rectangle body = new Rectangle(0,
0)
.setFillColor(ColorName.LIGHTYELLOW);
return body;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getCellSelectorBorder() {
final Rectangle selector = new Rectangle(0, 0)
.setStrokeColor(ColorName.GREEN)
.setStrokeWidth(1.0);
return selector;
}
代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client
@Override
public Rectangle getCellSelectorBorder() {
final Rectangle selector = new Rectangle(0, 0)
.setStrokeColor(KIEColours.CELL_FOCUS)
.setStrokeWidth(GRID_SELECTOR_LINE_WIDTH);
return selector;
}
代码示例来源: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: org.uberfire/uberfire-wires-core-grids
@Override
public Rectangle getGridBoundary() {
final Rectangle boundary = new Rectangle(0,
0)
.setStrokeColor(ColorName.SLATEGRAY)
.setStrokeWidth(0.5)
.setListening(false);
return boundary;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-case-mgmt-client
@Test
public void testBuild_subprocess() throws Exception {
final SVGShapeView shapeView = tested.build("subprocess",
new SVGPrimitiveShape(new Rectangle(0d, 0d)),
10d,
10d,
false);
assertTrue(shapeView instanceof CaseManagementShapeView);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions
public Rectangle createRectangle(final double width,
final double height) {
return new Rectangle(width + padding,
height + padding)
.setCornerRadius(5)
.setFillColor(ColorName.BLACK)
.setFillAlpha(0.01)
.setStrokeWidth(1)
.setStrokeColor(ColorName.BLACK)
.setStrokeAlpha(0);
}
代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client
private Group makeDecisionTableGlyph( final GuidedDecisionTableView view ) {
final Group g = new Group();
final Rectangle r = new Rectangle( view.getWidth(),
view.getHeight() );
r.setFillColor( ColorName.LIGHTGRAY );
r.setLocation( view.getLocation() );
g.setListening( false );
g.add( r );
return g;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-svg-client
@Before
public void setup() throws Exception {
this.svgGroup = new Group().setID("svgGroup1");
this.group = new Group().setID("parent");
this.rectangle = new Rectangle(10d, 10d);
when(svgChild.getContainer()).thenReturn(svgGroup);
this.parentShape = new SVGContainer("parent",
group,
false,
null);
this.tested = new SVGChildViewHandler(shapeView);
}
代码示例来源: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 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.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 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;
}
内容来源于网络,如有侵权,请联系作者删除!