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:
@@ -204,7 +204,7 @@ public class ArcPath extends TimedPath
|
||||
gfx.drawArc(x, y, width-1, height-1, 360-sangle, -delta);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected void toString (StringBuilder buf)
|
||||
{
|
||||
super.toString(buf);
|
||||
|
||||
@@ -26,8 +26,6 @@ import java.awt.Graphics2D;
|
||||
|
||||
import com.samskivert.util.RandomUtil;
|
||||
|
||||
import static com.threerings.media.Log.log;
|
||||
|
||||
/**
|
||||
* Bobble a Pathable.
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ public class DelayPath extends TimedPath
|
||||
_source = source;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void init (Pathable pable, long timestamp)
|
||||
{
|
||||
super.init(pable, timestamp);
|
||||
|
||||
@@ -77,7 +77,7 @@ public class LinePath extends TimedPath
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void init (Pathable pable, long timestamp)
|
||||
{
|
||||
super.init(pable, timestamp);
|
||||
@@ -119,7 +119,7 @@ public class LinePath extends TimedPath
|
||||
gfx.drawLine(_source.x, _source.y, _dest.x, _dest.y);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected void toString (StringBuilder buf)
|
||||
{
|
||||
super.toString(buf);
|
||||
|
||||
@@ -320,7 +320,7 @@ public class LineSegmentPath
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
return StringUtil.toString(_nodes.iterator());
|
||||
|
||||
@@ -31,7 +31,7 @@ public class LinearTimeFunction extends TimeFunction
|
||||
super(start, end, duration);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected int computeValue (int dt)
|
||||
{
|
||||
int dv = (_end - _start);
|
||||
|
||||
@@ -47,9 +47,7 @@ public class PathNode
|
||||
this.dir = dir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a string representation of this path node.
|
||||
*/
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder buf = new StringBuilder();
|
||||
|
||||
@@ -60,6 +60,7 @@ public class PathSequence
|
||||
{
|
||||
_pable = pable;
|
||||
_pableRep = new DelegatingPathable(_pable) {
|
||||
@Override
|
||||
public void pathCompleted (long timeStamp) {
|
||||
long initStamp;
|
||||
// if we just finished a timed path, we can figure out how
|
||||
|
||||
@@ -182,6 +182,7 @@ class PerformanceAction
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder buf = new StringBuilder();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SmoothBobblePath extends BobblePath
|
||||
super(dx, dy, duration, updateFreq);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void init (Pathable pable, long tickstamp)
|
||||
{
|
||||
super.init(pable, tickstamp);
|
||||
@@ -49,7 +49,7 @@ public class SmoothBobblePath extends BobblePath
|
||||
_oldy = _sy;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public boolean tick (Pathable pable, long tickStamp)
|
||||
{
|
||||
// see if we need to stop
|
||||
|
||||
@@ -43,14 +43,14 @@ public class TiledArea extends JComponent
|
||||
setOpaque(true);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public void paintComponent (Graphics g)
|
||||
{
|
||||
super.paintComponent(g);
|
||||
_tiler.paint(g, 0, 0, getWidth(), getHeight());
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
return new Dimension(_tiler.getNaturalWidth(),
|
||||
|
||||
@@ -71,9 +71,7 @@ public abstract class TimedPath implements Path
|
||||
// nothing doing
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a string representation of this instance.
|
||||
*/
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder buf = new StringBuilder("[");
|
||||
|
||||
@@ -65,9 +65,7 @@ public class TrailingAverage
|
||||
return (end > 0) ? (value/end) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current trailing average value as a string.
|
||||
*/
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
return Integer.toString(value());
|
||||
|
||||
Reference in New Issue
Block a user