Package playn.core

Examples of playn.core.TextWrap


            // layout our text, if we have any
            if (haveText) {
                TextStyle style = Style.createTextStyle(TextWidget.this);
                // TODO: should we do something with a y-hint?
                if (hints.width > 0 && wrap) {
                    text = new StyledText.Block(curtext, style, new TextWrap(hints.width),
                                                Style.toAlignment(resolveStyle(Style.HALIGN)));
                } else {
                    text = new StyledText.Span(curtext, style);
                }
            }
View Full Code Here


    }

    /** Creates a uniformly formatted multiple-lines of text wrapped at {@code wrapWidth} and
     * left-aligned. */
    public static Block block (String text, TextStyle style, float wrapWidth) {
        return new Block(text, style, new TextWrap(wrapWidth), TextBlock.Align.LEFT);
    }
View Full Code Here

TOP

Related Classes of playn.core.TextWrap

Copyright © 2018 www.massapicom. 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.