Package com.threerings.parlor.media

Examples of com.threerings.parlor.media.ScoreAnimation


     * Creates a score animation, allowing derived classes to use custom animations that are
     * customized following a call to {@link #createScoreAnimation(String,Color,Font,int,int)}.
     */
    protected ScoreAnimation createScoreAnimation (Label label, int x, int y)
    {
        return new ScoreAnimation(label, x, y);
    }
View Full Code Here


     */
    public ScoreAnimation createScoreAnimation (
        String score, Color color, Font font, int x, int y, int width, int height)
    {
        // create the score animation
        ScoreAnimation anim = createScoreAnimation(score, color, font, x, y);

        // position the label within the specified rectangle
        Dimension lsize = anim.getLabel().getSize();
        Point pos = new Point();
        centerRectInBoardRect(x, y, width, height, lsize.width, lsize.height, pos);
        anim.setLocation(pos.x, pos.y);

        return anim;
    }
View Full Code Here

TOP

Related Classes of com.threerings.parlor.media.ScoreAnimation

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.