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

x33g5p2x  于2022-01-24 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(147)

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

Line.setAlpha介绍

暂无

代码示例

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
public void setSelected(final boolean isSelected) {
  if (isSelected) {
    bounding.setAlpha(ALPHA_SELECTED);
  } else {
    bounding.setAlpha(ALPHA_DESELECTED);
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
public void setSelected(final boolean isSelected) {
  if (isSelected) {
    bounding.setAlpha(ALPHA_SELECTED);
  } else {
    bounding.setAlpha(ALPHA_DESELECTED);
  }
}

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

public StandardBackgroundGridLayer()
  {
    super(100, new Line().setAlpha(0.40).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE), 10, new Line().setAlpha(0.25).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.WHITE.getColorString());
  }
}

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

public StandardBackgroundGridLayer()
  {
    super(100, new Line().setAlpha(0.40).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE), 10, new Line().setAlpha(0.25).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.WHITE.getColorString());
  }
}

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

public StandardBackgroundGridLayer()
  {
    super(100, new Line().setAlpha(0.40).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE), 10, new Line().setAlpha(0.25).setStrokeWidth(1).setStrokeColor(ColorName.ROYALBLUE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.WHITE.getColorString());
  }
}

代码示例来源: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: com.ahome-it/lienzo-core

public BluePrintBackgroundGridLayer()
  {
    super(20, new Line().setAlpha(0.2).setStrokeWidth(1).setStrokeColor(ColorName.WHITE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.ROYALBLUE.getColorString());
  }
}

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

public BluePrintBackgroundGridLayer()
  {
    super(20, new Line().setAlpha(0.2).setStrokeWidth(1).setStrokeColor(ColorName.WHITE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.ROYALBLUE.getColorString());
  }
}

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

public BluePrintBackgroundGridLayer()
  {
    super(20, new Line().setAlpha(0.2).setStrokeWidth(1).setStrokeColor(ColorName.WHITE));

    setTransformable(false).setListening(false).getElement().getStyle().setBackgroundColor(ColorName.ROYALBLUE.getColorString());
  }
}

代码示例来源: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: kiegroup/appformer

y2);
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

y2);
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

controlX1,
            controlY1);
controlLine1.setAlpha(0.5);
controlLine1.setStrokeColor("#0000ff");
controlLine1.setDashArray(2,
            endX,
            endY);
controlLine2.setAlpha(0.5);
controlLine2.setStrokeColor("#0000ff");
controlLine2.setDashArray(2,

代码示例来源:origin: kiegroup/appformer

controlX1,
            controlY1);
controlLine1.setAlpha(0.5);
controlLine1.setStrokeColor("#0000ff");
controlLine1.setDashArray(2,
            endX,
            endY);
controlLine2.setAlpha(0.5);
controlLine2.setStrokeColor("#0000ff");
controlLine2.setDashArray(2,

相关文章