Javadoc warnings cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@655 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -41,9 +41,8 @@ import static com.threerings.media.Log.log;
|
|||||||
public abstract class AbstractMedia
|
public abstract class AbstractMedia
|
||||||
implements Shape
|
implements Shape
|
||||||
{
|
{
|
||||||
/** A {@link #_renderOrder} value at or above which, indicates that this
|
/** A {@link #_renderOrder} value at or above which, indicates that this media is in the HUD
|
||||||
* media is in the HUD (heads up display) and should not scroll when the
|
* (heads up display) and should not scroll when the view scrolls. */
|
||||||
* view scrolls. */
|
|
||||||
public static final int HUD_LAYER = 65536;
|
public static final int HUD_LAYER = 65536;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -348,7 +347,7 @@ public abstract class AbstractMedia
|
|||||||
/**
|
/**
|
||||||
* "Naturally" compares this media with the specified other media (which by definition will
|
* "Naturally" compares this media with the specified other media (which by definition will
|
||||||
* have the same render order value). The default behavior, for legacy reasons, is to compare
|
* have the same render order value). The default behavior, for legacy reasons, is to compare
|
||||||
* using {@link #hashCode} which is not consistent across VM invocations.
|
* using {@link Object#hashCode} which is not consistent across VM invocations.
|
||||||
*/
|
*/
|
||||||
protected int naturalCompareTo (AbstractMedia other)
|
protected int naturalCompareTo (AbstractMedia other)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,20 +21,19 @@
|
|||||||
|
|
||||||
package com.threerings.media;
|
package com.threerings.media;
|
||||||
|
|
||||||
|
import static com.threerings.resource.Log.log;
|
||||||
|
|
||||||
|
import java.awt.Graphics;
|
||||||
import java.awt.Graphics2D;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.Shape;
|
import java.awt.Shape;
|
||||||
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import com.samskivert.util.SortableArrayList;
|
|
||||||
import com.samskivert.util.ObserverList.ObserverOp;
|
|
||||||
import com.samskivert.util.ObserverList;
|
import com.samskivert.util.ObserverList;
|
||||||
|
import com.samskivert.util.SortableArrayList;
|
||||||
import com.samskivert.util.Tuple;
|
import com.samskivert.util.Tuple;
|
||||||
|
import com.samskivert.util.ObserverList.ObserverOp;
|
||||||
import static com.threerings.resource.Log.log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages, ticks, and paints {@link AbstractMedia}.
|
* Manages, ticks, and paints {@link AbstractMedia}.
|
||||||
@@ -61,7 +60,7 @@ public abstract class AbstractMediaManager
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a graphics that can be used to compute metrics or whatever else a media might need.
|
* Creates a graphics that can be used to compute metrics or whatever else a media might need.
|
||||||
* The caller should call {@link Graphics2D#dispose} on the returned object when it is done
|
* The caller should call {@link Graphics#dispose} on the returned object when it is done
|
||||||
* with it.
|
* with it.
|
||||||
*/
|
*/
|
||||||
public Graphics2D createGraphics ()
|
public Graphics2D createGraphics ()
|
||||||
@@ -167,11 +166,11 @@ public abstract class AbstractMediaManager
|
|||||||
log.warning("Egads! Render order changed during a tick.");
|
log.warning("Egads! Render order changed during a tick.");
|
||||||
Thread.dumpStack();
|
Thread.dumpStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
_media.remove(media);
|
_media.remove(media);
|
||||||
_media.insertSorted(media, RENDER_ORDER);
|
_media.insertSorted(media, RENDER_ORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls {@link AbstractMedia#tick} on all media to give them a chance to move about, change
|
* Calls {@link AbstractMedia#tick} on all media to give them a chance to move about, change
|
||||||
* their look, generate dirty regions, and so forth.
|
* their look, generate dirty regions, and so forth.
|
||||||
|
|||||||
Reference in New Issue
Block a user