Add in @Overrides across the board, clean up the comments around them some, and remove
unneeded imports. I've got partially completed patches for narya & vilya, too, but nenya was the only one that wound up in a decent state after a friday evening puttering at it, killing time waiting on other things to finish. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@572 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -79,6 +79,7 @@ public class CharSpriteViz extends JPanel
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
@@ -38,6 +38,7 @@ public class BundledComponentRepositoryTest extends TestCase
|
||||
super(BundledComponentRepositoryTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -45,12 +45,14 @@ public class NearestViz extends JPanel
|
||||
addMouseMotionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doLayout ()
|
||||
{
|
||||
super.doLayout();
|
||||
_center = new Point(getWidth() / 2, getHeight() / 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
@@ -45,12 +45,14 @@ public class WhichSideViz extends JPanel
|
||||
addMouseMotionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doLayout ()
|
||||
{
|
||||
super.doLayout();
|
||||
_center = new Point(getWidth() / 2, getHeight() / 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
@@ -37,6 +37,7 @@ public class BundledTileSetRepositoryTest extends TestCase
|
||||
super(BundledTileSetRepositoryTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -35,6 +35,7 @@ public class XMLTileSetParserTest extends TestCase
|
||||
super(XMLTileSetParserTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
HashMap sets = new HashMap();
|
||||
|
||||
@@ -57,7 +57,7 @@ public class PathViz extends MediaPanel
|
||||
sprite.move(path);
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
@Override
|
||||
public void paintBetween (Graphics2D gfx, Rectangle dirtyRect)
|
||||
{
|
||||
super.paintBetween(gfx, dirtyRect);
|
||||
@@ -66,6 +66,7 @@ public class PathViz extends MediaPanel
|
||||
_spritemgr.renderSpritePaths(gfx);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
return new Dimension(300, 300);
|
||||
@@ -94,6 +95,7 @@ public class PathViz extends MediaPanel
|
||||
_oyoff = 16;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint (Graphics2D gfx)
|
||||
{
|
||||
gfx.setColor(Color.blue);
|
||||
|
||||
@@ -76,29 +76,35 @@ public class ScrollingScene extends MisoSceneModel
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBaseTileId (int x, int y)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBaseTile (int fqTileId, int x, int y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean addObject (ObjectInfo info)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getObjects (Rectangle region, ObjectSet set)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateObject (ObjectInfo info)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeObject (ObjectInfo info)
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -138,6 +138,7 @@ public class ScrollingTestApp
|
||||
}
|
||||
|
||||
_ship.addSpriteObserver(new PathAdapter() {
|
||||
@Override
|
||||
public void pathCompleted (Sprite sprite, Path path, long when) {
|
||||
// keep scrolling for a spell
|
||||
if (++_sidx < DX.length) {
|
||||
|
||||
@@ -27,7 +27,6 @@ import java.awt.Component;
|
||||
import java.awt.GraphicsConfiguration;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JMenu;
|
||||
import javax.swing.JMenuBar;
|
||||
|
||||
|
||||
@@ -75,14 +75,14 @@ public class ViewerSceneViewPanel extends MisoScenePanel
|
||||
PerformanceMonitor.register(this, "paint", 1000);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void setSceneModel (MisoSceneModel model)
|
||||
{
|
||||
super.setSceneModel(model);
|
||||
log.info("Using " + model + ".");
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void doLayout ()
|
||||
{
|
||||
super.doLayout();
|
||||
@@ -135,7 +135,7 @@ public class ViewerSceneViewPanel extends MisoScenePanel
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void paint (Graphics g)
|
||||
{
|
||||
super.paint(g);
|
||||
@@ -148,7 +148,7 @@ public class ViewerSceneViewPanel extends MisoScenePanel
|
||||
log.info(name + " [ticks=" + ticks + "].");
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void mousePressed (MouseEvent e)
|
||||
{
|
||||
super.mousePressed(e);
|
||||
|
||||
@@ -35,6 +35,7 @@ public class DirectionTest extends TestCase
|
||||
super(DirectionTest.class.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runTest ()
|
||||
{
|
||||
int orient = NORTH;
|
||||
|
||||
@@ -44,12 +44,14 @@ public class DirectionViz extends JPanel
|
||||
addMouseMotionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doLayout ()
|
||||
{
|
||||
super.doLayout();
|
||||
_center = new Point(getWidth() / 2, getHeight() / 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
|
||||
@@ -94,7 +94,7 @@ public class KeyboardManagerApp
|
||||
public static final String MOVE_RIGHT = "move_right";
|
||||
public static final String DROP = "drop";
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public boolean handleAction (ActionEvent action)
|
||||
{
|
||||
String cmd = action.getActionCommand();
|
||||
|
||||
Reference in New Issue
Block a user