Examples of TextBreak


Examples of de.lessvoid.nifty.elements.tools.TextBreak

    RenderFont font = ensureFont(r);
    List < String > lines = new ArrayList < String > ();
    for (String line : textLines) {
      int lineLengthInPixel = font.getWidth(line);
      if (lineLengthInPixel > width) {
        lines.addAll(new TextBreak(line, width, font).split());
      } else {
        lines.add(line);
      }
    }
    return lines.toArray(new String[0]);
View Full Code Here

Examples of transientlibs.preui.utils.layout.TextBreak

        List< String> lines = new ArrayList< String>();
        for (String line : textLines) {
            //Log.info("font: "+font.getWidth("11"));
            int lineLengthInPixel = font.getWidth(line);
            if (lineLengthInPixel > width) {
                lines.addAll(new TextBreak(line, width, font).split());
            } else {
                lines.add(line);
            }
        }
        return lines.toArray(new String[0]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.