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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user