use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class WiresTextDecorator method setTextWrapper.
public WiresTextDecorator setTextWrapper(final TextWrapperStrategy strategy) {
final ITextWrapper wrapper = getTextWrapper(strategy);
this.textWrapper = wrapper;
text.setWrapper(textWrapper);
update();
return this;
}
use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testTruncateWithLineBreak.
@Test
public void testTruncateWithLineBreak() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.TRUNCATE_WITH_LINE_BREAK, text);
assertTrue(wrapper instanceof TextLineBreakTruncateWrapper);
}
use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testBoundsAndLineBreaks.
@Test
public void testBoundsAndLineBreaks() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.BOUNDS_AND_LINE_BREAKS, text);
assertTrue(wrapper instanceof TextBoundsAndLineBreaksWrap);
}
use of com.ait.lienzo.client.core.shape.ITextWrapper 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);
}
use of com.ait.lienzo.client.core.shape.ITextWrapper in project kie-wb-common by kiegroup.
the class TextWrapperProviderTest method testTruncate.
@Test
public void testTruncate() {
final ITextWrapper wrapper = TextWrapperProvider.get(TextWrapperStrategy.TRUNCATE, text);
assertTrue(wrapper instanceof TextTruncateWrapper);
}
Aggregations