本文整理了Java中com.ait.lienzo.client.core.shape.Line.setLineCap()
方法的一些代码示例,展示了Line.setLineCap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setLineCap()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Line
类名称:Line
方法名:setLineCap
暂无
代码示例来源:origin: org.uberfire/uberfire-wires-core-trees
public WiresTreeNodeConnector() {
setStrokeColor(ShapesUtils.RGB_STROKE_SHAPE)
.setStrokeWidth(ShapesUtils.RGB_STROKE_WIDTH_SHAPE)
.setFillColor(ShapesUtils.RGB_FILL_SHAPE)
.setLineCap(LineCap.ROUND)
.setStrokeWidth(3)
.setDraggable(false);
}
}
代码示例来源:origin: kiegroup/appformer
public WiresTreeNodeConnector() {
setStrokeColor(ShapesUtils.RGB_STROKE_SHAPE)
.setStrokeWidth(ShapesUtils.RGB_STROKE_WIDTH_SHAPE)
.setFillColor(ShapesUtils.RGB_FILL_SHAPE)
.setLineCap(LineCap.ROUND)
.setStrokeWidth(3)
.setDraggable(false);
}
}
代码示例来源:origin: kiegroup/appformer
@Override
protected Line makeShape() {
final Line line = new Line(0 - (SHAPE_SIZE_X / 2),
0 - (SHAPE_SIZE_Y / 2),
SHAPE_SIZE_X / 2,
SHAPE_SIZE_Y / 2);
line.setStrokeColor(ShapesUtils.RGB_STROKE_SHAPE)
.setStrokeWidth(ShapesUtils.RGB_STROKE_WIDTH_SHAPE)
.setFillColor(ShapesUtils.RGB_FILL_SHAPE)
.setLineCap(LineCap.ROUND)
.setStrokeWidth(3)
.setDraggable(false);
return line;
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
@Override
protected Line makeShape() {
final Line line = new Line(0 - (SHAPE_SIZE_X / 2),
0 - (SHAPE_SIZE_Y / 2),
SHAPE_SIZE_X / 2,
SHAPE_SIZE_Y / 2);
line.setStrokeColor(ShapesUtils.RGB_STROKE_SHAPE)
.setStrokeWidth(ShapesUtils.RGB_STROKE_WIDTH_SHAPE)
.setFillColor(ShapesUtils.RGB_FILL_SHAPE)
.setLineCap(LineCap.ROUND)
.setStrokeWidth(3)
.setDraggable(false);
return line;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
private static Line createLine(CanvasGrid.GridLine line1) {
final Line line = new Line(0,
0,
0,
0)
.setStrokeColor(line1.getColor())
.setAlpha(line1.getAlpha())
.setStrokeWidth(line1.getWidth())
.setLineCap(LineCap.ROUND);
if (line1.getDashArray() > -1) {
line.setDashArray(1,
line1.getDashArray());
}
return line;
}
}
内容来源于网络,如有侵权,请联系作者删除!