示例#1
0
 public static StaticText staticText(final String text, final Styles styles) {
   final StaticText staticText = new StaticText();
   staticText.setText(text);
   staticText.setFont(font(styles));
   staticText.setColor(styles.getColor());
   return staticText;
 }
示例#2
0
 public static StaticText staticTextWithLineBreak(final String text, final Styles styles) {
   final StaticText staticText = staticText(text, styles);
   staticText.setLineWrappingAtEnd(LineWrappingRule.REQUIRED);
   return staticText;
 }