Pass a Graphics2D to AnimatedPanel.render() so that sub-classes needn't

explicitly typecast it on their own, as they are almost invariably wont to
do.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@890 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-01-23 17:10:41 +00:00
parent d6b17cd36c
commit 5510400f45
2 changed files with 8 additions and 7 deletions
@@ -1,10 +1,10 @@
//
// $Id: SceneViewPanel.java,v 1.24 2002/01/19 07:04:46 mdb Exp $
// $Id: SceneViewPanel.java,v 1.25 2002/01/23 17:10:41 shaper Exp $
package com.threerings.miso.scene;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.util.List;
@@ -80,9 +80,9 @@ public class SceneViewPanel extends AnimatedPanel
}
// documentation inherited
protected void render (Graphics g)
protected void render (Graphics2D gfx)
{
_view.paint(g);
_view.paint(gfx);
}
// documentation inherited