@Override gets the point across

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@881 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Dave Hoover
2010-02-10 20:32:41 +00:00
parent fe544b0046
commit b68e799106
21 changed files with 109 additions and 109 deletions
@@ -31,7 +31,7 @@ import java.io.OutputStream;
*/ */
public class DirectoryMetadataBundlerTask extends MetadataBundlerTask public class DirectoryMetadataBundlerTask extends MetadataBundlerTask
{ {
@Override // documentation inherited. @Override
protected OutputStream createOutputStream (File target) protected OutputStream createOutputStream (File target)
throws IOException throws IOException
{ {
@@ -39,7 +39,7 @@ public class DirectoryMetadataBundlerTask extends MetadataBundlerTask
return null; return null;
} }
@Override // documentation inherited @Override
protected OutputStream nextEntry (OutputStream lastEntry, String path) protected OutputStream nextEntry (OutputStream lastEntry, String path)
throws IOException throws IOException
{ {
@@ -80,7 +80,7 @@ public class BillboardController extends ModelController
protected boolean _axial, _eyeRelativeX, _eyeRelativeZ; protected boolean _axial, _eyeRelativeX, _eyeRelativeZ;
}; };
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -130,7 +130,7 @@ public class BillboardController extends ModelController
_rot.mult(lrot, lrot); _rot.mult(lrot, lrot);
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -145,7 +145,7 @@ public class BillboardController extends ModelController
return bstore; return bstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -155,7 +155,7 @@ public class BillboardController extends ModelController
capsule.readString("alignment", "DIR_X_POS_Z")); capsule.readString("alignment", "DIR_X_POS_Z"));
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -37,7 +37,7 @@ import com.jme.util.export.OutputCapsule;
*/ */
public abstract class EmissionController extends ModelController public abstract class EmissionController extends ModelController
{ {
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -45,7 +45,7 @@ public abstract class EmissionController extends ModelController
props.getProperty("hide_target", "true")); props.getProperty("hide_target", "true"));
} }
@Override // documentation inherited @Override
public void init (Model model) public void init (Model model)
{ {
super.init(model); super.init(model);
@@ -59,7 +59,7 @@ public abstract class EmissionController extends ModelController
} }
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -72,7 +72,7 @@ public abstract class EmissionController extends ModelController
return estore; return estore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -81,7 +81,7 @@ public abstract class EmissionController extends ModelController
_hideTarget = capsule.readBoolean("hideTarget", true); _hideTarget = capsule.readBoolean("hideTarget", true);
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
+6 -6
View File
@@ -712,7 +712,7 @@ public class Model extends ModelNode
fos.close(); fos.close();
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -743,7 +743,7 @@ public class Model extends ModelNode
} }
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -770,7 +770,7 @@ public class Model extends ModelNode
capsule.writeSavableArrayList(getControllers(), "controllers", null); capsule.writeSavableArrayList(getControllers(), "controllers", null);
} }
@Override // documentation inherited @Override
public void resolveTextures (TextureProvider tprov) public void resolveTextures (TextureProvider tprov)
{ {
super.resolveTextures(tprov); super.resolveTextures(tprov);
@@ -852,7 +852,7 @@ public class Model extends ModelNode
lockInstance(targets); lockInstance(targets);
} }
@Override // documentation inherited @Override
public Spatial putClone (Spatial store, CloneCreator properties) public Spatial putClone (Spatial store, CloneCreator properties)
{ {
Model mstore = (Model)properties.originalToCopy.get(this); Model mstore = (Model)properties.originalToCopy.get(this);
@@ -880,7 +880,7 @@ public class Model extends ModelNode
return mstore; return mstore;
} }
@Override // documentation inherited @Override
public void updateGeometricState (float time, boolean initiator) public void updateGeometricState (float time, boolean initiator)
{ {
// if we were not visible the last time we were rendered, don't do a // if we were not visible the last time we were rendered, don't do a
@@ -915,7 +915,7 @@ public class Model extends ModelNode
} }
} }
@Override // documentation inherited @Override
public void onDraw (Renderer r) public void onDraw (Renderer r)
{ {
// if we switch from invisible to visible, we have to do a last-minute // if we switch from invisible to visible, we have to do a last-minute
@@ -114,7 +114,7 @@ public abstract class ModelController extends Controller
return mstore; return mstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -129,7 +129,7 @@ public abstract class ModelController extends Controller
} }
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -85,7 +85,7 @@ public class ModelMesh extends TriMesh
super(name); super(name);
} }
@Override // documentation inherited @Override
public int hashCode () public int hashCode ()
{ {
// hash on the name rather than the identity for consistent ordering // hash on the name rather than the identity for consistent ordering
@@ -180,7 +180,7 @@ public class ModelMesh extends TriMesh
} }
} }
@Override // documentation inherited @Override
public void reconstruct ( public void reconstruct (
FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors, FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors,
FloatBuffer textures, IntBuffer indices) FloatBuffer textures, IntBuffer indices)
@@ -290,7 +290,7 @@ public class ModelMesh extends TriMesh
return mstore; return mstore;
} }
@Override // documentation inherited @Override
public void updateWorldVectors () public void updateWorldVectors ()
{ {
if (!_transformLocked) { if (!_transformLocked) {
@@ -298,7 +298,7 @@ public class ModelMesh extends TriMesh
} }
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -334,7 +334,7 @@ public class ModelMesh extends TriMesh
capsule.readIntBuffer("indexBuffer", null)); capsule.readIntBuffer("indexBuffer", null));
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -459,7 +459,7 @@ public class ModelMesh extends TriMesh
// no-op // no-op
} }
@Override // documentation inherited @Override
protected void setupBatchList () protected void setupBatchList ()
{ {
batchList = Lists.newArrayListWithCapacity(1); batchList = Lists.newArrayListWithCapacity(1);
@@ -664,7 +664,7 @@ public class ModelMesh extends TriMesh
* the base layer. */ * the base layer. */
protected class ModelBatch extends TriangleBatch protected class ModelBatch extends TriangleBatch
{ {
@Override // documentation inherited @Override
public void draw (Renderer r) public void draw (Renderer r)
{ {
boolean drawing = (isEnabled() && r.isProcessingQueue()); boolean drawing = (isEnabled() && r.isProcessingQueue());
@@ -63,7 +63,7 @@ public class ModelNode extends Node
super(name); super(name);
} }
@Override // documentation inherited @Override
public int hashCode () public int hashCode ()
{ {
// hash on the name rather than the identity for consistent ordering // hash on the name rather than the identity for consistent ordering
@@ -98,7 +98,7 @@ public class ModelNode extends Node
return _modelTransform; return _modelTransform;
} }
@Override // documentation inherited @Override
public void updateWorldData (float time) public void updateWorldData (float time)
{ {
// we use locked bounds as an indication that we can skip the update // we use locked bounds as an indication that we can skip the update
@@ -108,7 +108,7 @@ public class ModelNode extends Node
} }
} }
@Override // documentation inherited @Override
public void updateWorldBound () public void updateWorldBound ()
{ {
// don't bother updating if we know there are no visible descendants // don't bother updating if we know there are no visible descendants
@@ -117,7 +117,7 @@ public class ModelNode extends Node
} }
} }
@Override // documentation inherited @Override
public void updateWorldVectors () public void updateWorldVectors ()
{ {
super.updateWorldVectors(); super.updateWorldVectors();
@@ -178,7 +178,7 @@ public class ModelNode extends Node
return mstore; return mstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -198,7 +198,7 @@ public class ModelNode extends Node
} }
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -42,7 +42,7 @@ import com.threerings.jme.util.JmeUtil;
*/ */
public class Rotator extends ModelController public class Rotator extends ModelController
{ {
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -60,7 +60,7 @@ public class Rotator extends ModelController
_target.getLocalRotation().multLocal(_rot); _target.getLocalRotation().multLocal(_rot);
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -76,7 +76,7 @@ public class Rotator extends ModelController
return rstore; return rstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -86,7 +86,7 @@ public class Rotator extends ModelController
_velocity = capsule.readFloat("velocity", 0f); _velocity = capsule.readFloat("velocity", 0f);
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
+20 -20
View File
@@ -233,7 +233,7 @@ public class SkinMesh extends ModelMesh
_bones = bones.toArray(new Bone[bones.size()]); _bones = bones.toArray(new Bone[bones.size()]);
} }
@Override // documentation inherited @Override
public void addOverlay (RenderState[] overlay) public void addOverlay (RenderState[] overlay)
{ {
// add a cloned state config (with same uniforms) for the overlay // add a cloned state config (with same uniforms) for the overlay
@@ -249,7 +249,7 @@ public class SkinMesh extends ModelMesh
_osconfigs.add(osconfig); _osconfigs.add(osconfig);
} }
@Override // documentation inherited @Override
public void removeOverlay (RenderState[] overlay) public void removeOverlay (RenderState[] overlay)
{ {
// remove the corresponding state config // remove the corresponding state config
@@ -263,7 +263,7 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
public void reconstruct ( public void reconstruct (
FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors, FloatBuffer vertices, FloatBuffer normals, FloatBuffer colors,
FloatBuffer textures, IntBuffer indices) FloatBuffer textures, IntBuffer indices)
@@ -274,7 +274,7 @@ public class SkinMesh extends ModelMesh
_frames = new HashIntMap<Object>(); _frames = new HashIntMap<Object>();
} }
@Override // documentation inherited @Override
public Spatial putClone (Spatial store, Model.CloneCreator properties) public Spatial putClone (Spatial store, Model.CloneCreator properties)
{ {
SkinMesh mstore = (SkinMesh)properties.originalToCopy.get(this); SkinMesh mstore = (SkinMesh)properties.originalToCopy.get(this);
@@ -323,7 +323,7 @@ public class SkinMesh extends ModelMesh
return mstore; return mstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -333,7 +333,7 @@ public class SkinMesh extends ModelMesh
"weightGroups", null), new WeightGroup[0])); "weightGroups", null), new WeightGroup[0]));
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -342,7 +342,7 @@ public class SkinMesh extends ModelMesh
capsule.write(_weightGroups, "weightGroups", null); capsule.write(_weightGroups, "weightGroups", null);
} }
@Override // documentation inherited @Override
public void expandModelBounds () public void expandModelBounds ()
{ {
BoundingVolume obound = getBatch(0).getModelBound().clone(null); BoundingVolume obound = getBatch(0).getModelBound().clone(null);
@@ -350,7 +350,7 @@ public class SkinMesh extends ModelMesh
getBatch(0).getModelBound().mergeLocal(obound); getBatch(0).getModelBound().mergeLocal(obound);
} }
@Override // documentation inherited @Override
public void setReferenceTransforms () public void setReferenceTransforms ()
{ {
_invRefTransform = new Matrix4f(); _invRefTransform = new Matrix4f();
@@ -368,7 +368,7 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
public void lockStaticMeshes ( public void lockStaticMeshes (
Renderer renderer, boolean useVBOs, boolean useDisplayLists) Renderer renderer, boolean useVBOs, boolean useDisplayLists)
{ {
@@ -394,7 +394,7 @@ public class SkinMesh extends ModelMesh
_useDisplayLists = useDisplayLists && !_translucent; _useDisplayLists = useDisplayLists && !_translucent;
} }
@Override // documentation inherited @Override
public void configureShaders (ShaderCache scache) public void configureShaders (ShaderCache scache)
{ {
if (_disableShaders || !GLContext.getCapabilities().GL_ARB_vertex_shader || if (_disableShaders || !GLContext.getCapabilities().GL_ARB_vertex_shader ||
@@ -418,14 +418,14 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
public void storeMeshFrame (int frameId, boolean blend) public void storeMeshFrame (int frameId, boolean blend)
{ {
_storeFrameId = frameId; _storeFrameId = frameId;
_storeBlend = blend; _storeBlend = blend;
} }
@Override // documentation inherited @Override
public void setMeshFrame (int frameId) public void setMeshFrame (int frameId)
{ {
TriangleBatch batch = getBatch(0), TriangleBatch batch = getBatch(0),
@@ -439,7 +439,7 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
public void blendMeshFrames (int frameId1, int frameId2, float alpha) public void blendMeshFrames (int frameId1, int frameId2, float alpha)
{ {
BlendFrame frame1 = (BlendFrame)_frames.get(frameId1), BlendFrame frame1 = (BlendFrame)_frames.get(frameId1),
@@ -452,7 +452,7 @@ public class SkinMesh extends ModelMesh
nbuf.put(_nbuf); nbuf.put(_nbuf);
} }
@Override // documentation inherited @Override
public void updateWorldData (float time) public void updateWorldData (float time)
{ {
super.updateWorldData(time); super.updateWorldData(time);
@@ -568,7 +568,7 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
protected ModelBatch createModelBatch () protected ModelBatch createModelBatch ()
{ {
// update the shader configs immediately before drawing // update the shader configs immediately before drawing
@@ -598,7 +598,7 @@ public class SkinMesh extends ModelMesh
}; };
} }
@Override // documentation inherited @Override
protected void storeOriginalBuffers () protected void storeOriginalBuffers ()
{ {
super.storeOriginalBuffers(); super.storeOriginalBuffers();
@@ -659,19 +659,19 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
protected String getVertexShader () protected String getVertexShader ()
{ {
return "media/jme/skin.vert"; return "media/jme/skin.vert";
} }
@Override // documentation inherited @Override
protected String getFragmentShader () protected String getFragmentShader ()
{ {
return "media/jme/skin.frag"; return "media/jme/skin.frag";
} }
@Override // documentation inherited @Override
protected void getDefinitions (ArrayList<String> defs) protected void getDefinitions (ArrayList<String> defs)
{ {
super.getDefinitions(defs); super.getDefinitions(defs);
@@ -680,7 +680,7 @@ public class SkinMesh extends ModelMesh
} }
} }
@Override // documentation inherited @Override
protected void getDerivedDefinitions (ArrayList<String> ddefs) protected void getDerivedDefinitions (ArrayList<String> ddefs)
{ {
super.getDerivedDefinitions(ddefs); super.getDerivedDefinitions(ddefs);
@@ -42,7 +42,7 @@ import com.threerings.jme.util.JmeUtil.FrameState;
*/ */
public class TextureAnimator extends TextureController public class TextureAnimator extends TextureController
{ {
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -68,7 +68,7 @@ public class TextureAnimator extends TextureController
0f); 0f);
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -87,7 +87,7 @@ public class TextureAnimator extends TextureController
return tstore; return tstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -100,7 +100,7 @@ public class TextureAnimator extends TextureController
_repeatType = capsule.readInt("repeatType", Controller.RT_WRAP); _repeatType = capsule.readInt("repeatType", Controller.RT_WRAP);
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -113,7 +113,7 @@ public class TextureAnimator extends TextureController
capsule.write(_repeatType, "repeatType", Controller.RT_WRAP); capsule.write(_repeatType, "repeatType", Controller.RT_WRAP);
} }
@Override // documentation inherited @Override
protected void initTextures () protected void initTextures ()
{ {
super.initTextures(); super.initTextures();
@@ -37,7 +37,7 @@ import com.threerings.jme.util.SpatialVisitor;
*/ */
public abstract class TextureController extends ModelController public abstract class TextureController extends ModelController
{ {
@Override // documentation inherited @Override
public void resolveTextures (TextureProvider tprov) public void resolveTextures (TextureProvider tprov)
{ {
// reinitialize the cloned textures if we re-resolve // reinitialize the cloned textures if we re-resolve
@@ -44,7 +44,7 @@ import static com.threerings.jme.Log.log;
*/ */
public class TextureTranslator extends TextureController public class TextureTranslator extends TextureController
{ {
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -67,7 +67,7 @@ public class TextureTranslator extends TextureController
_translation.addLocal(_velocity.x * time, _velocity.y * time, 0f); _translation.addLocal(_velocity.x * time, _velocity.y * time, 0f);
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -82,7 +82,7 @@ public class TextureTranslator extends TextureController
return tstore; return tstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -91,7 +91,7 @@ public class TextureTranslator extends TextureController
_velocity = (Vector2f)capsule.readSavable("velocity", null); _velocity = (Vector2f)capsule.readSavable("velocity", null);
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
@@ -100,7 +100,7 @@ public class TextureTranslator extends TextureController
capsule.write(_velocity, "velocity", null); capsule.write(_velocity, "velocity", null);
} }
@Override // documentation inherited @Override
protected void initTextures () protected void initTextures ()
{ {
super.initTextures(); super.initTextures();
@@ -41,7 +41,7 @@ import com.threerings.jme.util.JmeUtil;
*/ */
public class Translator extends ModelController public class Translator extends ModelController
{ {
@Override // documentation inherited @Override
public void configure (Properties props, Spatial target) public void configure (Properties props, Spatial target)
{ {
super.configure(props, target); super.configure(props, target);
@@ -72,7 +72,7 @@ public class Translator extends ModelController
_target.getLocalTranslation().interpolate(_from, _to, alpha); _target.getLocalTranslation().interpolate(_from, _to, alpha);
} }
@Override // documentation inherited @Override
public Controller putClone ( public Controller putClone (
Controller store, Model.CloneCreator properties) Controller store, Model.CloneCreator properties)
{ {
@@ -90,7 +90,7 @@ public class Translator extends ModelController
return tstore; return tstore;
} }
@Override // documentation inherited @Override
public void read (JMEImporter im) public void read (JMEImporter im)
throws IOException throws IOException
{ {
@@ -102,7 +102,7 @@ public class Translator extends ModelController
_repeatType = capsule.readInt("repeatType", Controller.RT_WRAP); _repeatType = capsule.readInt("repeatType", Controller.RT_WRAP);
} }
@Override // documentation inherited @Override
public void write (JMEExporter ex) public void write (JMEExporter ex)
throws IOException throws IOException
{ {
+14 -14
View File
@@ -390,7 +390,7 @@ public class ModelDef
/** A triangle mesh that deforms according to bone positions. */ /** A triangle mesh that deforms according to bone positions. */
public static class SkinMeshDef extends TriMeshDef public static class SkinMeshDef extends TriMeshDef
{ {
@Override // documentation inherited @Override
public void getBoneNames (HashSet<String> bones) public void getBoneNames (HashSet<String> bones)
{ {
for (Vertex vertex : vertices) { for (Vertex vertex : vertices) {
@@ -398,13 +398,13 @@ public class ModelDef
} }
} }
@Override // documentation inherited @Override
protected ModelMesh createMesh () protected ModelMesh createMesh ()
{ {
return new SkinMesh("mesh"); return new SkinMesh("mesh");
} }
@Override // documentation inherited @Override
public void resolveReferences ( public void resolveReferences (
HashMap<String, Spatial> nodes, HashSet<Spatial> referenced) HashMap<String, Spatial> nodes, HashSet<Spatial> referenced)
{ {
@@ -442,7 +442,7 @@ public class ModelDef
((SkinMesh)_mesh).setWeightGroups(wgroups); ((SkinMesh)_mesh).setWeightGroups(wgroups);
} }
@Override // documentation inherited @Override
protected void configureMesh (Properties props) protected void configureMesh (Properties props)
{ {
// divide the vertices up by weight groups // divide the vertices up by weight groups
@@ -579,13 +579,13 @@ public class ModelDef
return StringUtil.toString(location); return StringUtil.toString(location);
} }
@Override // documentation inherited @Override
public int hashCode () public int hashCode ()
{ {
return Arrays.hashCode(location) ^ Arrays.hashCode(normal) ^ Arrays.hashCode(tcoords); return Arrays.hashCode(location) ^ Arrays.hashCode(normal) ^ Arrays.hashCode(tcoords);
} }
@Override // documentation inherited @Override
public boolean equals (Object obj) public boolean equals (Object obj)
{ {
Vertex overt = (Vertex)obj; Vertex overt = (Vertex)obj;
@@ -706,7 +706,7 @@ public class ModelDef
getLocalTranslation(), getLocalRotation(), getLocalScale(), localTransform); getLocalTranslation(), getLocalRotation(), getLocalScale(), localTransform);
} }
@Override // documentation inherited @Override
public void updateWorldVectors () public void updateWorldVectors ()
{ {
super.updateWorldVectors(); super.updateWorldVectors();
@@ -973,21 +973,21 @@ public class ModelDef
* are unique and non-null). */ * are unique and non-null). */
protected static class HashArrayList<E> extends ArrayList<E> protected static class HashArrayList<E> extends ArrayList<E>
{ {
@Override // documentation inherited @Override
public boolean add (E element) public boolean add (E element)
{ {
add(size(), element); add(size(), element);
return true; return true;
} }
@Override // documentation inherited @Override
public void add (int idx, E element) public void add (int idx, E element)
{ {
super.add(idx, element); super.add(idx, element);
remapFrom(idx); remapFrom(idx);
} }
@Override // documentation inherited @Override
public E remove (int idx) public E remove (int idx)
{ {
E element = super.remove(idx); E element = super.remove(idx);
@@ -996,27 +996,27 @@ public class ModelDef
return element; return element;
} }
@Override // documentation inherited @Override
public void clear () public void clear ()
{ {
super.clear(); super.clear();
_indices.clear(); _indices.clear();
} }
@Override // documentation inherited @Override
public int indexOf (Object obj) public int indexOf (Object obj)
{ {
Integer idx = _indices.get(obj); Integer idx = _indices.get(obj);
return (idx == null ? -1 : idx); return (idx == null ? -1 : idx);
} }
@Override // documentation inherited @Override
public boolean contains (Object obj) public boolean contains (Object obj)
{ {
return _indices.containsKey(obj); return _indices.containsKey(obj);
} }
@Override // documentation inherited @Override
public boolean remove (Object obj) public boolean remove (Object obj)
{ {
Integer idx = _indices.remove(obj); Integer idx = _indices.remove(obj);
@@ -376,7 +376,7 @@ public class ModelViewer extends JmeCanvasApp
run(); run();
} }
@Override // documentation inherited @Override
public boolean init () public boolean init ()
{ {
if (!super.init()) { if (!super.init()) {
@@ -388,7 +388,7 @@ public class ModelViewer extends JmeCanvasApp
return true; return true;
} }
@Override // documentation inherited @Override
protected void initDisplay () protected void initDisplay ()
throws JmeException throws JmeException
{ {
@@ -397,7 +397,7 @@ public class ModelViewer extends JmeCanvasApp
_ctx.getRenderer().getQueue().setTwoPassTransparency(false); _ctx.getRenderer().getQueue().setTwoPassTransparency(false);
} }
@Override // documentation inherited @Override
protected void initInput () protected void initInput ()
{ {
super.initInput(); super.initInput();
@@ -430,13 +430,13 @@ public class ModelViewer extends JmeCanvasApp
CAMPOS_FORMAT.format(pitch)); CAMPOS_FORMAT.format(pitch));
} }
@Override // documentation inherited @Override
protected CameraHandler createCameraHandler (Camera camera) protected CameraHandler createCameraHandler (Camera camera)
{ {
return new OrbitCameraHandler(camera); return new OrbitCameraHandler(camera);
} }
@Override // documentation inherited @Override
protected void initRoot () protected void initRoot ()
{ {
super.initRoot(); super.initRoot();
@@ -528,7 +528,7 @@ public class ModelViewer extends JmeCanvasApp
} }
} }
@Override // documentation inherited @Override
protected void initLighting () protected void initLighting ()
{ {
_dlight = new DirectionalLight(); _dlight = new DirectionalLight();
@@ -962,7 +962,7 @@ public class ModelViewer extends JmeCanvasApp
_spatial.setLocalScale(_scale.getValue() * 0.0001f); _spatial.setLocalScale(_scale.getValue() * 0.0001f);
} }
@Override // documentation inherited @Override
public void setVisible (boolean visible) public void setVisible (boolean visible)
{ {
super.setVisible(visible); super.setVisible(visible);
@@ -1032,7 +1032,7 @@ public class ModelViewer extends JmeCanvasApp
protected class MouseOrbiter extends MouseAdapter protected class MouseOrbiter extends MouseAdapter
implements MouseMotionListener, MouseWheelListener implements MouseMotionListener, MouseWheelListener
{ {
@Override // documentation inherited @Override
public void mousePressed (MouseEvent e) public void mousePressed (MouseEvent e)
{ {
_mloc.setLocation(e.getX(), e.getY()); _mloc.setLocation(e.getX(), e.getY());
@@ -1081,7 +1081,7 @@ public class ModelViewer extends JmeCanvasApp
_gpoint = super.getGroundPoint(); _gpoint = super.getGroundPoint();
} }
@Override // documentation inherited @Override
public void panCamera (float x, float y) { public void panCamera (float x, float y) {
Vector3f offset = _camera.getLeft().mult(-x).addLocal( Vector3f offset = _camera.getLeft().mult(-x).addLocal(
_camera.getUp().mult(y)); _camera.getUp().mult(y));
@@ -1090,7 +1090,7 @@ public class ModelViewer extends JmeCanvasApp
_camera.onFrameChange(); _camera.onFrameChange();
} }
@Override // documentation inherited @Override
public Vector3f getGroundPoint () public Vector3f getGroundPoint ()
{ {
return _gpoint; return _gpoint;
@@ -230,14 +230,14 @@ public class ShaderCache
Collections.addAll(this.defs, defs); Collections.addAll(this.defs, defs);
} }
@Override // documentation inherited @Override
public int hashCode () public int hashCode ()
{ {
return (vert == null ? 0 : vert.hashCode()) + (frag == null ? 0 : frag.hashCode()) + return (vert == null ? 0 : vert.hashCode()) + (frag == null ? 0 : frag.hashCode()) +
defs.hashCode(); defs.hashCode();
} }
@Override // documentation inherited @Override
public boolean equals (Object obj) public boolean equals (Object obj)
{ {
ShaderKey okey = (ShaderKey)obj; ShaderKey okey = (ShaderKey)obj;
@@ -245,7 +245,7 @@ public class ShaderCache
defs.equals(okey.defs); defs.equals(okey.defs);
} }
@Override // documentation inherited @Override
public String toString () public String toString ()
{ {
return "[vert=" + vert + ", frag=" + frag + ", defs=" + defs + "]"; return "[vert=" + vert + ", frag=" + frag + ", defs=" + defs + "]";
@@ -87,7 +87,7 @@ public abstract class ShaderConfig
return _scache.configureState(_state, vert, frag, darray, ddarray); return _scache.configureState(_state, vert, frag, darray, ddarray);
} }
@Override // documentation inherited @Override
public ShaderConfig clone () public ShaderConfig clone ()
{ {
try { try {
@@ -308,7 +308,7 @@ public abstract class ShaderConfig
return (otype != type); return (otype != type);
} }
@Override // documentation inherited @Override
public LightConfig clone () public LightConfig clone ()
{ {
try { try {
@@ -318,7 +318,7 @@ public abstract class ShaderConfig
} }
} }
@Override // documentation inherited @Override
public String toString () public String toString ()
{ {
return Integer.toString(type); return Integer.toString(type);
@@ -339,7 +339,7 @@ public abstract class ShaderConfig
return (omode != envMapMode); return (omode != envMapMode);
} }
@Override // documentation inherited @Override
public TextureConfig clone () public TextureConfig clone ()
{ {
try { try {
@@ -349,7 +349,7 @@ public abstract class ShaderConfig
} }
} }
@Override // documentation inherited @Override
public String toString () public String toString ()
{ {
return Integer.toString(envMapMode); return Integer.toString(envMapMode);
@@ -74,7 +74,7 @@ public class GleamAnimation extends Animation
_fadeIn = fadeIn; _fadeIn = fadeIn;
} }
@Override // documentation inherited @Override
public void tick (long timestamp) public void tick (long timestamp)
{ {
if (timestamp - _lastUpdate < _millisBetweenUpdates) { if (timestamp - _lastUpdate < _millisBetweenUpdates) {
+1 -1
View File
@@ -95,7 +95,7 @@ public class Buffer
_id = 0; _id = 0;
} }
@Override // documentation inherited @Override
protected void finalize () protected void finalize ()
throws Throwable throws Throwable
{ {
+1 -1
View File
@@ -360,7 +360,7 @@ public class Source
_queue.clear(); _queue.clear();
} }
@Override // documentation inherited @Override
protected void finalize () protected void finalize ()
throws Throwable throws Throwable
{ {
@@ -53,13 +53,13 @@ public class NetworkResourceBundle extends KnownAvailabilityResourceBundle
_ident = path; _ident = path;
} }
@Override // documentation inherited @Override
public String getIdent () public String getIdent ()
{ {
return _ident; return _ident;
} }
@Override // documentation inherited @Override
public InputStream getResource (String path) public InputStream getResource (String path)
throws IOException throws IOException
{ {
@@ -94,7 +94,7 @@ public class NetworkResourceBundle extends KnownAvailabilityResourceBundle
} }
} }
@Override // documentation inherited @Override
public BufferedImage getImageResource (String path, boolean useFastIO) public BufferedImage getImageResource (String path, boolean useFastIO)
throws IOException throws IOException
{ {