本文整理了Java中com.ait.lienzo.client.core.shape.Line.setDashArray()
方法的一些代码示例,展示了Line.setDashArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setDashArray()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Line
类名称:Line
方法名:setDashArray
暂无
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo
public static Line line(final int width,
final int height,
final double dAlpha,
final double dWidth,
final String dColor) {
return new Line(0, 0, width, height)
.setDraggable(false)
.setListening(false)
.setFillAlpha(0)
.setDashArray(5)
.setStrokeAlpha(dAlpha)
.setStrokeWidth(dWidth)
.setStrokeColor(dColor);
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-client
@PostConstruct
public void init() {
panel = new FocusableLienzoPanel(DEFAULT_SIZE_WIDTH,
DEFAULT_SIZE_HEIGHT);
initWidget(panel);
//Grid...
Line line1 = new Line(0,
0,
0,
0).setStrokeColor(ColorName.BLUE).setAlpha(0.5); // primary lines
Line line2 = new Line(0,
0,
0,
0).setStrokeColor(ColorName.GREEN).setAlpha(0.5); // secondary dashed-lines
line2.setDashArray(2,
2);
GridLayer gridLayer = new GridLayer(100,
line1,
25,
line2);
panel.setBackgroundLayer(gridLayer);
panel.getScene().add(canvasLayer);
}
代码示例来源:origin: kiegroup/appformer
@PostConstruct
public void init() {
panel = new FocusableLienzoPanel(DEFAULT_SIZE_WIDTH,
DEFAULT_SIZE_HEIGHT);
initWidget(panel);
//Grid...
Line line1 = new Line(0,
0,
0,
0).setStrokeColor(ColorName.BLUE).setAlpha(0.5); // primary lines
Line line2 = new Line(0,
0,
0,
0).setStrokeColor(ColorName.GREEN).setAlpha(0.5); // secondary dashed-lines
line2.setDashArray(2,
2);
GridLayer gridLayer = new GridLayer(100,
line1,
25,
line2);
panel.setBackgroundLayer(gridLayer);
panel.getScene().add(canvasLayer);
}
代码示例来源: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;
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
line.setDashArray(dashes);
line.setDashArray(previousDashes);
代码示例来源:origin: com.ahome-it/lienzo-core
line.setDashArray(dashes);
line.setDashArray(previousDashes);
代码示例来源:origin: ahome-it/lienzo-core
line.setDashArray(dashes);
line.setDashArray(previousDashes);
代码示例来源:origin: ahome-it/lienzo-core
line.setDashArray(dashes);
line.setDashArray(previousDashes);
代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad
controlLine1.setAlpha(0.5);
controlLine1.setStrokeColor("#0000ff");
controlLine1.setDashArray(2,
2);
controlLine2 = new Line(controlX2,
controlLine2.setAlpha(0.5);
controlLine2.setStrokeColor("#0000ff");
controlLine2.setDashArray(2,
2);
代码示例来源:origin: kiegroup/appformer
controlLine1.setAlpha(0.5);
controlLine1.setStrokeColor("#0000ff");
controlLine1.setDashArray(2,
2);
controlLine2 = new Line(controlX2,
controlLine2.setAlpha(0.5);
controlLine2.setStrokeColor("#0000ff");
controlLine2.setDashArray(2,
2);
内容来源于网络,如有侵权,请联系作者删除!