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

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

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

Text.setTextUnit介绍

暂无

代码示例

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(KIEColours.TABLE_TEXT)
      .setFontSize(GRID_FONT_SIZE)
      .setTextUnit(TextUnit.PT)
      .setFontFamily(GRID_FONT_FAMILY)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(KIEColours.TABLE_TEXT)
      .setFontSize(GRID_FONT_SIZE)
      .setTextUnit(TextUnit.PT)
      .setFontFamily(GRID_FONT_FAMILY)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
  public Text getErrorText() {
    return new Text("")
        .setFillColor(CELL_ERROR_FOCUS)
        .setFontSize(KIEStyles.FONT_SIZE)
        .setFontFamily(KIEStyles.FONT_FAMILY_LABEL)
        .setTextUnit(TextUnit.PT)
        .setListening(false)
        .setTextBaseLine(TextBaseLine.MIDDLE)
        .setTextAlign(TextAlign.CENTER);
  }
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(KIEColours.TABLE_TEXT)
      .setFontSize(GRID_FONT_SIZE)
      .setTextUnit(TextUnit.PT)
      .setFontFamily(GRID_FONT_FAMILY)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getBodyText() {
  return new Text("")
      .setFillColor(ColorName.BLACK)
      .setFontSize(FONT_SIZE)
      .setFontFamily(FONT_FAMILY_LABEL)
      .setTextUnit(TextUnit.PT)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(KIEColours.TABLE_TEXT)
      .setFontSize(GRID_FONT_SIZE)
      .setTextUnit(TextUnit.PT)
      .setFontFamily(GRID_FONT_FAMILY)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  return new Text("")
      .setFillColor(ColorName.BLACK)
      .setFontSize(FONT_SIZE)
      .setFontFamily(FONT_FAMILY_HEADER)
      .setTextUnit(TextUnit.PT)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
}

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

@Override
public Text getHeaderText() {
  return new Text("")
      .setFillColor(TABLE_TEXT)
      .setFontSize(KIEStyles.FONT_SIZE)
      .setFontFamily(FONT_FAMILY_HEADER)
      .setTextUnit(TextUnit.PT)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
}

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

@Override
public Text getBodyText() {
  return new Text("")
      .setFillColor(TABLE_TEXT)
      .setFontSize(KIEStyles.FONT_SIZE)
      .setFontFamily(KIEStyles.FONT_FAMILY_LABEL)
      .setTextUnit(TextUnit.PT)
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
}

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

/**
   * Delegates the Body's Text to sub-classes.
   * @return A {@link Text} used to render the placeholder in the body.
   */
  default Text getPlaceholderText() {
    return new Text("")
        .setFillColor(KIEColours.PLACEHOLDER_COLOR)
        .setFontSize(KIEStyles.FONT_SIZE)
        .setFontFamily(KIEStyles.FONT_FAMILY_LABEL)
        .setFontStyle(KIEStyles.FONT_STYLE_ITALIC)
        .setTextUnit(TextUnit.PT)
        .setListening(false)
        .setTextBaseLine(TextBaseLine.MIDDLE)
        .setTextAlign(TextAlign.CENTER);
  }
}

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

/**
   * Delegates the Body's Text to sub-classes.
   * @return A {@link Text} used to render the placeholder in the body.
   */
  default Text getPlaceholderText() {
    return new Text("")
        .setFillColor(KIEColours.PLACEHOLDER_COLOR)
        .setFontSize(KIEStyles.FONT_SIZE)
        .setFontFamily(KIEStyles.FONT_FAMILY_LABEL)
        .setFontStyle(KIEStyles.FONT_STYLE_ITALIC)
        .setTextUnit(TextUnit.PT)
        .setListening(false)
        .setTextBaseLine(TextBaseLine.MIDDLE)
        .setTextAlign(TextAlign.CENTER);
  }
}

相关文章