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

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

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

Text.setFillBoundsForSelection介绍

暂无

代码示例

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

public NodeLabel( final String label ) {
  container.setFillColor( Color.rgbToBrowserHexColor( 255,
                            255,
                            255 ) );
  container.setStrokeWidth( 1.0 );
  container.setStrokeColor( Color.rgbToBrowserHexColor( 180,
                             180,
                             180 ) );
  container.setAlpha( 0.50 );
  text.setFillBoundsForSelection(true);
  text.setTextAlign( TextAlign.CENTER );
  text.setTextBaseLine( TextBaseLine.MIDDLE );
  text.setFillColor( Color.rgbToBrowserHexColor( 0,
                          0,
                          0 ) );
  add( container );
  add( text );
  setLabel( label );
}

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

public NodeLabel( final String label ) {
  container.setFillColor( Color.rgbToBrowserHexColor( 255,
                            255,
                            255 ) );
  container.setStrokeWidth( 1.0 );
  container.setStrokeColor( Color.rgbToBrowserHexColor( 180,
                             180,
                             180 ) );
  container.setAlpha( 0.50 );
  text.setFillBoundsForSelection(true);
  text.setTextAlign( TextAlign.CENTER );
  text.setTextBaseLine( TextBaseLine.MIDDLE );
  text.setFillColor( Color.rgbToBrowserHexColor( 0,
                          0,
                          0 ) );
  add( container );
  add( text );
  setLabel( label );
}

代码示例来源: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());
}

相关文章