本文整理了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
暂无
代码示例来源: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!