From 4928ff01c7023360180a5942cdac3d68dae5ea55 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 12 Nov 2004 00:33:38 +0000 Subject: [PATCH] Support extension. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3212 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/puzzle/client/ScoreAnimation.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/puzzle/client/ScoreAnimation.java b/src/java/com/threerings/puzzle/client/ScoreAnimation.java index 2a23a53f0..fe6ceed10 100644 --- a/src/java/com/threerings/puzzle/client/ScoreAnimation.java +++ b/src/java/com/threerings/puzzle/client/ScoreAnimation.java @@ -1,5 +1,5 @@ // -// $Id: ScoreAnimation.java,v 1.3 2004/08/27 02:20:27 mdb Exp $ +// $Id: ScoreAnimation.java,v 1.4 2004/11/12 00:33:38 mdb Exp $ // // Narya library - tools for developing networked games // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -191,10 +191,22 @@ public class ScoreAnimation extends Animation if (_comp != null) { gfx.setComposite(_comp); } - _label.render(gfx, _x, _y); + paintLabels(gfx, _x, _y); gfx.setComposite(ocomp); } + /** + * Derived classes may wish to extend score animation and render more than + * just the standard single label. + * + * @param x the upper left coordinate of the animation. + * @param y the upper left coordinate of the animation. + */ + protected void paintLabels (Graphics2D gfx, int x, int y) + { + _label.render(gfx, x, y); + } + // documentation inherited protected void toString (StringBuffer buf) {