本文整理了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
[英]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;
}
内容来源于网络,如有侵权,请联系作者删除!