本文整理了Java中com.ait.lienzo.client.core.shape.Text.setWrapper()
方法的一些代码示例,展示了Text.setWrapper()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setWrapper()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Text
类名称:Text
方法名:setWrapper
暂无
代码示例来源:origin: org.kie.workbench/kie-wb-common-dmn-client
private static Group getExpressionText(final GridRendererTheme theme,
final String text) {
final Group g = GWT.create(Group.class);
final Text t = makeExpressionText(theme);
t.setText(text);
t.setListening(false);
t.setX(EXPRESSION_TEXT_PADDING);
t.setY(EXPRESSION_TEXT_PADDING);
t.setTextAlign(TextAlign.LEFT);
t.setWrapper(new TextLineBreakWrap(t));
g.add(t);
return g;
}
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!