use of com.ait.lienzo.client.core.shape.TextLineBreakWrap in project kie-wb-common by kiegroup.
the class RendererUtils method getExpressionText.
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;
}
use of com.ait.lienzo.client.core.shape.TextLineBreakWrap in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testLineBreak.
@Test
public void testLineBreak() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.LINE_BREAK, text);
assertTrue(wrapper instanceof TextLineBreakWrap);
}
Aggregations