Package flash.swf.types

Examples of flash.swf.types.TextRecord


    }

    private TextRecord getStyleRecord(FontBuilder fontBuilder, double height,
                                      Color color, int xOffset, int yOffset)
    {
        TextRecord tr = new TextRecord();
        if (fontBuilder != null)
        {
            tr.setFont(fontBuilder.tag);
            tr.setHeight(SwfUtils.toTwips(height));
        }

        if (color != null)
        {
            int c = SwfUtils.colorToInt(color);
            tr.setColor(c);
        }

        if (xOffset > 0)
        {
            tr.setX(xOffset);
        }

        if (yOffset > 0)
        {
            tr.setY(yOffset);
        }
        return tr;
    }
View Full Code Here

TOP

Related Classes of flash.swf.types.TextRecord

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.