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

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

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

Text.setFontFamily介绍

[英]Sets the Text Font Family
[中]设置文本字体系列

代码示例

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

private static Text makeExpressionText(final GridRendererTheme theme) {
  final Text t = theme.getBodyText();
  t.setFontFamily(BaseExpressionGridTheme.FONT_FAMILY_EXPRESSION);
  return t;
}

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

protected Consumer<Text> defaultTextConsumer() {
  return text -> text
      .setFontSize(10)
      .setFontFamily("Verdana");
}

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

@Override
@SuppressWarnings("unchecked")
public T setTitleFontFamily(final String fontFamily) {
  label.ifPresent(l -> l.configure(text -> text.setFontFamily(fontFamily)));
  return cast();
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(ColorName.GREY)
      .setFontSize(12)
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(ColorName.RED)
      .setFontSize(12)
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(ColorName.GREEN)
      .setFontSize(12)
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(ColorName.GREEN)
      .setFontSize(12)
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getBodyText() {
  final Text t = new Text("")
      .setFillColor(ColorName.BLUE)
      .setFontSize(12)
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKGREEN)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .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: 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.uberfire/uberfire-wires-core-grids

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKBLUE)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKGREEN)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

代码示例来源: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: org.uberfire/uberfire-wires-core-grids

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKRED)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKGOLDENROD)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKBLUE)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

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

@Override
public Text getHeaderText() {
  final Text t = new Text("")
      .setFillColor(ColorName.DARKGOLDENROD)
      .setFontSize(12)
      .setFontStyle("bold")
      .setFontFamily("serif")
      .setListening(false)
      .setTextBaseLine(TextBaseLine.MIDDLE)
      .setTextAlign(TextAlign.CENTER);
  return t;
}

相关文章