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

x33g5p2x  于2022-01-30 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(70)

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

Text.setStrokeWidth介绍

暂无

代码示例

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

@SuppressWarnings("unchecked")
public void setTitleStrokeWidth(final double strokeWidth) {
  text.setStrokeWidth(strokeWidth);
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

@Override
@SuppressWarnings("unchecked")
public T setTitleStrokeWidth(final double strokeWidth) {
  label.ifPresent(l -> l.configure(text -> text.setStrokeWidth(strokeWidth)));
  return cast();
}

代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client

public BaseGuidedDecisionTreeShape( final Circle shape,
                  final T node,
                  final boolean isReadOnly ) {
  this.circle = shape;
  this.node = node;
  this.isReadOnly = isReadOnly;
  bounding = new Circle( circle.getRadius() + ( BOUNDARY_SIZE / 2 ) );
  bounding.setStrokeWidth( BOUNDARY_SIZE );
  bounding.setAlpha( 0.1 );
  plus.setTextAlign( TextAlign.CENTER );
  plus.setTextBaseLine( TextBaseLine.MIDDLE );
  plus.setStrokeWidth( 2 );
  add( circle );
  add( nodeLabel );
  if ( !isReadOnly ) {
    setupControls();
  }
}

代码示例来源:origin: kiegroup/drools-wb

public BaseGuidedDecisionTreeShape( final Circle shape,
                  final T node,
                  final boolean isReadOnly ) {
  this.circle = shape;
  this.node = node;
  this.isReadOnly = isReadOnly;
  bounding = new Circle( circle.getRadius() + ( BOUNDARY_SIZE / 2 ) );
  bounding.setStrokeWidth( BOUNDARY_SIZE );
  bounding.setAlpha( 0.1 );
  plus.setTextAlign( TextAlign.CENTER );
  plus.setTextBaseLine( TextBaseLine.MIDDLE );
  plus.setStrokeWidth( 2 );
  add( circle );
  add( nodeLabel );
  if ( !isReadOnly ) {
    setupControls();
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

private void initialize(final BoundingBox boundingBox) {
  this.text = new Text("")
      .setAlpha(TEXT_ALPHA)
      .setFontFamily(TEXT_FONT_FAMILY)
      .setFontSize(TEXT_FONT_SIZE)
      .setFillColor(TEXT_FILL_COLOR)
      .setStrokeColor(TEXT_STROKE_COLOR)
      .setStrokeWidth(TEXT_STROKE_WIDTH)
      .setTextAlign(TEXT_ALIGN)
      .setDraggable(false);
  this.textWrapper = new TextBoundsWrap(text,
                     new BoundingBox(0,
                             0,
                             1,
                             1));
  this.text.setWrapper(textWrapper);
  this.currentTextLayout = TEXT_LAYOUT_ALIGN;
  textContainer.add(text);
  textContainer.add(textSpacer);
  // Ensure path bounds are available on the selection context.
  text.setFillBoundsForSelection(true);
  initializeHandlers();
  resize(boundingBox.getWidth(), boundingBox.getHeight());
}

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

bounding.setTextBaseLine(text.getTextBaseLine());
bounding.setTextAlign(text.getTextAlign());
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);

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

bounding.setTextBaseLine(text.getTextBaseLine());
bounding.setTextAlign(text.getTextAlign());
bounding.setStrokeWidth(BOUNDARY_SIZE);
bounding.setAlpha(ALPHA_DESELECTED);

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo-extensions

.setFontStyle("")
.setFontFamily(TEXT_FAMILY)
.setStrokeWidth(TEXT_WIDTH)
.setStrokeColor(TEXT_COLOR)
.setStrokeAlpha(1);

相关文章

微信公众号

最新文章

更多