diff --git a/jme3-core/src/main/java/checkers/quals/SubtypeOf.java b/jme3-core/src/main/java/checkers/quals/SubtypeOf.java index ffc8be045..189969c05 100644 --- a/jme3-core/src/main/java/checkers/quals/SubtypeOf.java +++ b/jme3-core/src/main/java/checkers/quals/SubtypeOf.java @@ -6,8 +6,8 @@ import java.lang.annotation.*; * A meta-annotation to specify all the qualifiers that the given qualifier * is a subtype of. This provides a declarative way to specify the type * qualifier hierarchy. (Alternatively, the hierarchy can be defined - * procedurally by subclassing {@link checkers.types.QualifierHierarchy} or - * {@link checkers.types.TypeHierarchy}.) + * procedurally by subclassing checkers.types.QualifierHierarchy or + * checkers.types.TypeHierarchy.) * *
* Example:
diff --git a/jme3-core/src/main/java/checkers/quals/package-info.java b/jme3-core/src/main/java/checkers/quals/package-info.java
index 5ae80a7d6..192a8312f 100644
--- a/jme3-core/src/main/java/checkers/quals/package-info.java
+++ b/jme3-core/src/main/java/checkers/quals/package-info.java
@@ -5,6 +5,6 @@
* They may serve as documentation for the type qualifiers, and aid the
* Checker Framework to infer the relations between the type qualifiers.
*
- * @checker.framework.manual #writing-a-checker Writing a checker
+ * checker.framework.manual #writing-a-checker Writing a checker
*/
package checkers.quals;
diff --git a/jme3-core/src/main/java/com/jme3/anim/Armature.java b/jme3-core/src/main/java/com/jme3/anim/Armature.java
index ad7f5b0ac..2424e9d34 100644
--- a/jme3-core/src/main/java/com/jme3/anim/Armature.java
+++ b/jme3-core/src/main/java/com/jme3/anim/Armature.java
@@ -83,7 +83,9 @@ public class Armature implements JmeCloneable, Savable {
* Default is {@link MatrixJointModelTransform}
*
* @param modelTransformClass
- * @see {@link JointModelTransform},{@link MatrixJointModelTransform},{@link SeparateJointModelTransform},
+ * @see JointModelTransform
+ * @see MatrixJointModelTransform
+ * @see SeparateJointModelTransform
*/
public void setModelTransformClass(Class extends JointModelTransform> modelTransformClass) {
this.modelTransformClass = modelTransformClass;
@@ -106,7 +108,7 @@ public class Armature implements JmeCloneable, Savable {
/**
* returns the array of all root joints of this Armature
*
- * @return
+ * @return the pre-existing array
*/
public Joint[] getRoots() {
return rootJoints;
@@ -120,7 +122,7 @@ public class Armature implements JmeCloneable, Savable {
* return a joint for the given index
*
* @param index
- * @return
+ * @return the pre-existing instance
*/
public Joint getJoint(int index) {
return jointList[index];
@@ -130,7 +132,7 @@ public class Armature implements JmeCloneable, Savable {
* returns the joint with the given name
*
* @param name
- * @return
+ * @return the pre-existing instance or null if not found
*/
public Joint getJoint(String name) {
for (int i = 0; i < jointList.length; i++) {
@@ -145,7 +147,7 @@ public class Armature implements JmeCloneable, Savable {
* returns the bone index of the given bone
*
* @param joint
- * @return
+ * @return the index (≥0) or -1 if not found
*/
public int getJointIndex(Joint joint) {
for (int i = 0; i < jointList.length; i++) {
@@ -161,7 +163,7 @@ public class Armature implements JmeCloneable, Savable {
* returns the joint index of the joint that has the given name
*
* @param name
- * @return
+ * @return the index (≥0) or -1 if not found
*/
public int getJointIndex(String name) {
for (int i = 0; i < jointList.length; i++) {
@@ -219,7 +221,7 @@ public class Armature implements JmeCloneable, Savable {
/**
* Compute the skinning matrices for each bone of the armature that would be used to transform vertices of associated meshes
*
- * @return
+ * @return the pre-existing array
*/
public Matrix4f[] computeSkinningMatrices() {
for (int i = 0; i < jointList.length; i++) {
@@ -231,7 +233,7 @@ public class Armature implements JmeCloneable, Savable {
/**
* returns the number of joints of this armature
*
- * @return
+ * @return the count (≥0)
*/
public int getJointCount() {
return jointList.length;
diff --git a/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java b/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java
index 5056794f2..a72456c72 100644
--- a/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java
+++ b/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -77,7 +77,7 @@ public class MorphTrack implements AnimTrack
- * After calling this method, cast the {@link #getContext() context} to
- * {@link JmeCanvasContext},
- * then acquire the canvas with {@link JmeCanvasContext#getCanvas() }
+ * After calling this method, cast the {@link #getContext()} context to
+ * JmeCanvasContext,
+ * then acquire the canvas with JmeCanvasContext.getCanvas()
* and attach it to an AWT/Swing Frame.
* The rendering thread will start when the canvas becomes visible on
* screen, however if you wish to start the context immediately you
* may call {@link #startCanvas() } to force the rendering thread
* to start.
*
- * @see JmeCanvasContext
* @see Type#Canvas
*/
public void createCanvas(){
diff --git a/jme3-core/src/main/java/com/jme3/app/package.html b/jme3-core/src/main/java/com/jme3/app/package.html
index ec6bb9a89..63d18c955 100644
--- a/jme3-core/src/main/java/com/jme3/app/package.html
+++ b/jme3-core/src/main/java/com/jme3/app/package.html
@@ -50,7 +50,6 @@ public class ExampleUse extends Application { This value is merely a marker, by itself it does nothing.
* Generally model loaders will use this marker to indicate
* the material should receive shadows and therefore any
- * geometries using it should have the {@link ShadowMode#Receive} set
+ * geometries using it should have {@link com.jme3.renderer.queue.RenderQueue.ShadowMode#Receive} set
* on them.
*
* @param receivesShadows if the material should receive shadows or not.
@@ -942,7 +942,7 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
* or the first default technique that the renderer supports
* (based on the technique's {@link TechniqueDef#getRequiredCaps() requested rendering capabilities})
- * Before the returned buffer can be used, it must be acquried explicitly
+ * Before the returned buffer can be used, it must be acquired explicitly
* by {@link Buffer#acquireBufferForSharingAsync(com.jme3.opencl.CommandQueue) }
* and after modifying it, released by {@link Buffer#releaseBufferForSharingAsync(com.jme3.opencl.CommandQueue) }.
- * This is needed so that OpenGL and OpenCL operations do not interfer with each other.
+ * This is needed so that OpenGL and OpenCL operations do not interfere with each other.
* @param vb the vertex buffer to share
* @param access the memory access for the kernel
* @return the new buffer
@@ -204,10 +204,10 @@ public abstract class Context extends AbstractOpenCLObject {
* Note: The image must already been uploaded to the GPU,
* i.e. it must be used at least once for drawing.
*
- * Before the returned image can be used, it must be acquried explicitly
+ * Before the returned image can be used, it must be acquired explicitly
* by {@link Image#acquireImageForSharingAsync(com.jme3.opencl.CommandQueue) }
* and after modifying it, released by {@link Image#releaseImageForSharingAsync(com.jme3.opencl.CommandQueue) }
- * This is needed so that OpenGL and OpenCL operations do not interfer with each other.
+ * This is needed so that OpenGL and OpenCL operations do not interfere with each other.
*
* @param image the jME3 image object
* @param textureType the texture type (1D, 2D, 3D), since this is not stored in the image
@@ -226,10 +226,10 @@ public abstract class Context extends AbstractOpenCLObject {
* Note: The image must already been uploaded to the GPU,
* i.e. it must be used at least once for drawing.
*
- * Before the returned image can be used, it must be acquried explicitly
+ * Before the returned image can be used, it must be acquired explicitly
* by {@link Image#acquireImageForSharingAsync(com.jme3.opencl.CommandQueue) }
* and after modifying it, released by {@link Image#releaseImageForSharingAsync(com.jme3.opencl.CommandQueue) }
- * This is needed so that OpenGL and OpenCL operations do not interfer with each other.
+ * This is needed so that OpenGL and OpenCL operations do not interfere with each other.
*
* This method is equivalent to calling
* {@code bindImage(texture.getImage(), texture.getType(), miplevel, access)}.
@@ -263,14 +263,14 @@ public abstract class Context extends AbstractOpenCLObject {
* Note: The renderbuffer must already been uploaded to the GPU,
* i.e. it must be used at least once for drawing.
*
- * Before the returned image can be used, it must be acquried explicitly
+ * Before the returned image can be used, it must be acquired explicitly
* by {@link Image#acquireImageForSharingAsync(com.jme3.opencl.CommandQueue) }
* and after modifying it, released by {@link Image#releaseImageForSharingAsync(com.jme3.opencl.CommandQueue) }
- * This is needed so that OpenGL and OpenCL operations do not interfer with each other.
+ * This is needed so that OpenGL and OpenCL operations do not interfere with each other.
*
* @param buffer
* @param access
- * @return
+ * @return an image
*/
public Image bindRenderBuffer(FrameBuffer.RenderBuffer buffer, MemoryAccess access) {
if (buffer.getTexture() == null) {
diff --git a/jme3-core/src/main/java/com/jme3/opencl/Device.java b/jme3-core/src/main/java/com/jme3/opencl/Device.java
index 3529a2570..b9f083c57 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/Device.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/Device.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -155,7 +155,7 @@ public interface Device {
long getMaximumWorkItemDimensions();
/**
* Maximum number of work-items that can be specified in each dimension of the
- * work-group to {@link Kernel#Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.WorkSize, com.jme3.opencl.WorkSize, java.lang.Object...) }.
+ * work-group to {@link Kernel#Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...)}.
* The array has a length of at least 3.
* @return the maximum size of the work group in each dimension
*/
diff --git a/jme3-core/src/main/java/com/jme3/opencl/Image.java b/jme3-core/src/main/java/com/jme3/opencl/Image.java
index 7d5d07fb7..fd024000c 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/Image.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/Image.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2016 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -175,10 +175,10 @@ memory layout in which channels are stored in the image.
/**
* The image descriptor structure describes the type and dimensions of the image or image array.
*
- * There exists two constructors:
@@ -62,7 +63,8 @@
* with the following syntax: {@code __kernel void KernelName(KernelArgs) {Code} }.
* On the programming side, a {@link com.jme3.opencl.Kernel} instance is obtained
* by calling {@link com.jme3.opencl.Program#createKernel(java.lang.String) }.
- * To execute the kernel, the method {@link com.jme3.opencl.Kernel#Run1(com.jme3.opencl.CommandQueue, com.jme3.opencl.WorkSize, java.lang.Object...) }
+ * To execute the kernel, the method
+ * {@link Kernel#Run1(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...)}
* is provided. You first pass the command queue and the work size (i.e. the number of parallel executed threads)
* followed by the kernel arguments.
*
* Use of NPOT textures is allowed iff:
*
* If a {@link #setForcedRenderState(com.jme3.material.RenderState) forced
@@ -553,8 +553,8 @@ public class RenderManager {
*
* @see Technique
* @see RenderState
- * @see Material#selectTechnique(java.lang.String, com.jme3.renderer.RenderManager)
- * @see Material#render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager)
+ * @see com.jme3.material.Material#selectTechnique(java.lang.String, com.jme3.renderer.RenderManager)
+ * @see com.jme3.material.Material#render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager)
*/
public void renderGeometry(Geometry geom) {
if (geom.isIgnoreTransform()) {
@@ -690,7 +690,7 @@ public class RenderManager {
* In addition to enqueuing the visible geometries, this method
* also scenes which cast or receive shadows, by putting them into the
* RenderQueue's
- * {@link RenderQueue#addToShadowQueue(com.jme3.scene.Geometry, com.jme3.renderer.queue.RenderQueue.ShadowMode)
+ * {@link RenderQueue#addToQueue(com.jme3.scene.Geometry, com.jme3.renderer.queue.RenderQueue.Bucket)
* shadow queue}. Each Spatial which has its
* {@link Spatial#setShadowMode(com.jme3.renderer.queue.RenderQueue.ShadowMode) shadow mode}
* set to not off, will be put into the appropriate shadow queue, note that
@@ -1048,7 +1048,7 @@ public class RenderManager {
* (see {@link #renderTranslucentQueue(com.jme3.renderer.ViewPort) }) This feature requires hardware support from the GPU driver.
- * @see http://en.wikipedia.org/wiki/Quad_buffering
@@ -510,7 +510,7 @@ public class FrameBuffer extends NativeObject {
}
/**
- * @return The color buffer with the index set by {@link #setTargetIndex(int), or null
+ * @return The color buffer with the index set by {@link #setTargetIndex(int)}, or null
* if no color buffers are attached.
* If MRT is disabled, the first color buffer is returned.
*/
@@ -600,15 +600,14 @@ public class FrameBuffer extends NativeObject {
* Specifies that the color values stored in this framebuffer are in SRGB
* format.
*
- * The FrameBuffer must have a texture attached with the flag
- * {@link Image#isSrgb()} set to true.
+ * The FrameBuffer must have an SRGB texture attached.
*
* The Renderer must expose the {@link Caps#Srgb sRGB pipeline} capability
* for this option to take any effect.
*
* Rendering operations performed on this framebuffer shall undergo a linear
* -> sRGB color space conversion when this flag is enabled. If
- * {@link RenderState#getBlendMode() blending} is enabled, it will be
+ * {@link com.jme3.material.RenderState#getBlendMode() blending} is enabled, it will be
* performed in linear space by first decoding the stored sRGB pixel values
* into linear, combining with the shader result, and then converted back to
* sRGB upon being written into the framebuffer.
@@ -616,7 +615,7 @@ public class FrameBuffer extends NativeObject {
* @param srgb If the framebuffer color values should be stored in sRGB
* color space.
*
- * @throws InvalidStateException If the texture attached to this framebuffer
+ * @throws IllegalStateException If the texture attached to this framebuffer
* is not sRGB.
*/
public void setSrgb(boolean srgb) {
@@ -626,7 +625,7 @@ public class FrameBuffer extends NativeObject {
/**
* Determines if this framebuffer contains SRGB data.
*
- * @returns True if the framebuffer color values are in SRGB space, false if
+ * @return True if the framebuffer color values are in SRGB space, false if
* in linear space.
*/
public boolean isSrgb() {
diff --git a/jme3-core/src/main/java/com/jme3/texture/Image.java b/jme3-core/src/main/java/com/jme3/texture/Image.java
index fde8d4ecb..850fbace2 100644
--- a/jme3-core/src/main/java/com/jme3/texture/Image.java
+++ b/jme3-core/src/main/java/com/jme3/texture/Image.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -735,7 +735,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
}
/**
- * @see {@link #Image(com.jme3.texture.Image.Format, int, int, int, java.util.ArrayList, int[], com.jme3.texture.image.ColorSpace)}
+ * @see #Image(com.jme3.texture.Image.Format, int, int, int, java.util.ArrayList, int[], com.jme3.texture.image.ColorSpace)
* @param format
* @param width
* @param height
@@ -791,7 +791,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
}
/**
- * @see {@link #Image(com.jme3.texture.Image.Format, int, int, java.nio.ByteBuffer, int[], com.jme3.texture.image.ColorSpace)}
+ * @see #Image(com.jme3.texture.Image.Format, int, int, java.nio.ByteBuffer, int[], com.jme3.texture.image.ColorSpace)
* @param format
* @param width
* @param height
@@ -825,7 +825,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
}
/**
- * @see {@link #Image(com.jme3.texture.Image.Format, int, int, int, java.util.ArrayList, com.jme3.texture.image.ColorSpace)}
+ * @see #Image(com.jme3.texture.Image.Format, int, int, int, java.util.ArrayList, com.jme3.texture.image.ColorSpace)
* @param format
* @param width
* @param height
@@ -859,7 +859,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
/**
- * @see {@link #Image(com.jme3.texture.Image.Format, int, int, java.nio.ByteBuffer, com.jme3.texture.image.ColorSpace)}
+ * @see #Image(com.jme3.texture.Image.Format, int, int, java.nio.ByteBuffer, com.jme3.texture.image.ColorSpace)
* @param format
* @param width
* @param height
@@ -1130,7 +1130,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
* @param colorSpace @see ColorSpace. Set to sRGB to enable srgb -> linear
* conversion, Linear otherwise.
*
- * @seealso Renderer#setLinearizeSrgbImages(boolean)
+ * @see Renderer#setLinearizeSrgbImages(boolean)
*
*/
public void setColorSpace(ColorSpace colorSpace) {
@@ -1148,7 +1148,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
*
* @return True, if the image is an SRGB image, false if it is linear RGB.
*
- * @seealso Renderer#setLinearizeSrgbImages(boolean)
+ * @see Renderer#setLinearizeSrgbImages(boolean)
*/
public ColorSpace getColorSpace() {
return colorSpace;
diff --git a/jme3-core/src/main/java/com/jme3/texture/image/ImageRaster.java b/jme3-core/src/main/java/com/jme3/texture/image/ImageRaster.java
index 3ab96ff8f..82549df6d 100644
--- a/jme3-core/src/main/java/com/jme3/texture/image/ImageRaster.java
+++ b/jme3-core/src/main/java/com/jme3/texture/image/ImageRaster.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,7 @@ import com.jme3.texture.Image;
*
* If the underlying format is grayscale (e.g. one of the luminance formats,
- * such as {@link Image.Format#Luminance8}) then a color to grayscale
+ * such as {@link com.jme3.texture.Image.Format#Luminance8}) then a color to grayscale
* conversion is done first, before writing the result into the image.
*
* If the image does not have some of the components in the color (such
@@ -159,7 +159,7 @@ public abstract class ImageRaster {
*
* Any components that are not defined in the image format
* will be set to 1.0 in the returned color. For example,
- * reading from an {@link Image.Format#Alpha8} format will
+ * reading from an {@link com.jme3.texture.Image.Format#Alpha8} format will
* return a ColorRGBA with the R, G, and B components set to 1.0, and
* the A component set to the alpha in the image.
*
@@ -169,7 +169,7 @@ public abstract class ImageRaster {
* Integer formats are converted to the range 0.0 - 1.0, based
* on the maximum possible integer value that can be represented
* by the number of bits the component has.
- * For example, the {@link Image.Format#RGB5A1} format can
+ * For example, the {@link com.jme3.texture.Image.Format#RGB5A1} format can
* contain the integer values 0 - 31, a conversion to floating point
* is done by diving the integer value by 31 (done with floating point
* precision).
diff --git a/jme3-core/src/main/java/com/jme3/util/NativeObject.java b/jme3-core/src/main/java/com/jme3/util/NativeObject.java
index 426e4c9e0..727250b70 100644
--- a/jme3-core/src/main/java/com/jme3/util/NativeObject.java
+++ b/jme3-core/src/main/java/com/jme3/util/NativeObject.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -80,10 +80,8 @@ public abstract class NativeObject implements Cloneable {
protected boolean updateNeeded = true;
/**
- * Creates a new GLObject with the given type. Should be
+ * Creates a new GLObject. Should be
* called by the subclasses.
- *
- * @param type The type that the subclass represents.
*/
public NativeObject(){
this.handleRef = new Object();
diff --git a/jme3-core/src/main/java/com/jme3/util/SkyFactory.java b/jme3-core/src/main/java/com/jme3/util/SkyFactory.java
index 405581133..9ef2a37a3 100644
--- a/jme3-core/src/main/java/com/jme3/util/SkyFactory.java
+++ b/jme3-core/src/main/java/com/jme3/util/SkyFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,7 @@ public class SkyFactory {
public enum EnvMapType{
/**
* The env map is a cube map see {@link TextureCubeMap} or 6 separate images that form a cube map
- * The texture is either a {@link TextureCubeMap} or 6 {@link Texture2D}.
+ * The texture is either a {@link TextureCubeMap} or 6 {@link com.jme3.texture.Texture2D}.
* In the latter case, a TextureCubeMap is build from the 6 2d maps.
*/
CubeMap,
@@ -151,7 +151,7 @@ public class SkyFactory {
* frustum
* @return a new spatial representing the sky, ready to be attached to the
* scene graph
- * @deprecated use {@link SkyFactory#createSky(com.jme3.asset.AssetManager, com.jme3.texture.Texture, com.jme3.math.Vector3f, com.jme3.util.SkyFactory.EnvMapType, int)}
+ * @deprecated use {@link #createSky(com.jme3.asset.AssetManager, com.jme3.texture.Texture, com.jme3.math.Vector3f, com.jme3.util.SkyFactory.EnvMapType, float)}
*/
@Deprecated
public static Spatial createSky(AssetManager assetManager, Texture texture,
@@ -253,7 +253,7 @@ public class SkyFactory {
*
app.start();
}
- @Override
public void initialize(){
super.initialize();
@@ -58,7 +57,6 @@ public class ExampleUse extends Application {
viewPort.attachScene(rootNode);
}
- @Override
public void update(){
super.update();
diff --git a/jme3-core/src/main/java/com/jme3/audio/AudioNode.java b/jme3-core/src/main/java/com/jme3/audio/AudioNode.java
index 862348b63..393d1ff1e 100644
--- a/jme3-core/src/main/java/com/jme3/audio/AudioNode.java
+++ b/jme3-core/src/main/java/com/jme3/audio/AudioNode.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012, 2016, 2018 jMonkeyEngine
+ * Copyright (c) 2009-2012, 2016, 2018-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -490,7 +490,7 @@ public class AudioNode extends Node implements AudioSource {
/**
* Set to true to enable reverberation effects for this audio node.
* Does nothing if the audio node is not positional.
- *
+ *
* When enabled, the audio environment set with
* {@link AudioRenderer#setEnvironment(com.jme3.audio.Environment) }
* will apply a reverb effect to the audio playing from this audio node.
diff --git a/jme3-core/src/main/java/com/jme3/audio/AudioRenderer.java b/jme3-core/src/main/java/com/jme3/audio/AudioRenderer.java
index 695999e48..f10fd5d26 100644
--- a/jme3-core/src/main/java/com/jme3/audio/AudioRenderer.java
+++ b/jme3-core/src/main/java/com/jme3/audio/AudioRenderer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ public interface AudioRenderer {
/**
* Sets the environment, used for reverb effects.
*
- * @see AudioSource#setReverbEnabled(boolean)
+ * @see AudioNode#setReverbEnabled(boolean)
* @param env The environment to set.
*/
public void setEnvironment(Environment env);
diff --git a/jme3-core/src/main/java/com/jme3/audio/AudioSource.java b/jme3-core/src/main/java/com/jme3/audio/AudioSource.java
index 75a4e70f9..de2540022 100644
--- a/jme3-core/src/main/java/com/jme3/audio/AudioSource.java
+++ b/jme3-core/src/main/java/com/jme3/audio/AudioSource.java
@@ -17,7 +17,7 @@ public interface AudioSource {
public enum Status {
/**
* The audio source is currently playing. This will be set if
- * {@link AudioSource#play() } is called.
+ * {@link AudioNode#play()} is called.
*/
Playing,
@@ -28,7 +28,7 @@ public interface AudioSource {
/**
* The audio source is currently stopped.
- * This will be set if {@link AudioSource#stop() } is called
+ * This will be set if {@link AudioNode#stop()} is called
* or the audio has reached the end of the file.
*/
Stopped,
@@ -47,13 +47,13 @@ public interface AudioSource {
/**
* @return The {#link Filter dry filter} that is set.
- * @see AudioSource#setDryFilter(com.jme3.audio.Filter)
+ * @see AudioNode#setDryFilter(com.jme3.audio.Filter)
*/
public Filter getDryFilter();
/**
* @return The {@link AudioData} set previously with
- * {@link AudioSource#setAudioData(com.jme3.audio.AudioData, com.jme3.audio.AudioKey) }
+ * {@link AudioNode#setAudioData(com.jme3.audio.AudioData, com.jme3.audio.AudioKey)}
* or any of the constructors that initialize the audio data.
*/
public AudioData getAudioData();
@@ -65,34 +65,34 @@ public interface AudioSource {
/**
* @return The {@link Status} of the audio source.
- * The status will be changed when either the {@link AudioSource#play() }
- * or {@link AudioSource#stop() } methods are called.
+ * The status will be changed when either the {@link AudioNode#play()}
+ * or {@link AudioNode#stop()} methods are called.
*/
public Status getStatus();
/**
* @return True if the audio will keep looping after it is done playing,
* otherwise, false.
- * @see AudioSource#setLooping(boolean)
+ * @see AudioNode#setLooping(boolean)
*/
public boolean isLooping();
/**
* @return The pitch of the audio, also the speed of playback.
*
- * @see AudioSource#setPitch(float)
+ * @see AudioNode#setPitch(float)
*/
public float getPitch();
/**
* @return The volume of this audio source.
*
- * @see AudioSource#setVolume(float)
+ * @see AudioNode#setVolume(float)
*/
public float getVolume();
/**
- * @return the time offset in the sound sample when to start playing.
+ * @return the time offset in the sound sample to start playing
*/
public float getTimeOffset();
@@ -102,79 +102,77 @@ public interface AudioSource {
public float getPlaybackTime();
/**
- * @return The velocity of the audio source.
- *
- * @see AudioSource#setVelocity(com.jme3.math.Vector3f)
+ * @return The position of the audio source.
*/
public Vector3f getPosition();
/**
* @return The velocity of the audio source.
*
- * @see AudioSource#setVelocity(com.jme3.math.Vector3f)
+ * @see AudioNode#setVelocity(com.jme3.math.Vector3f)
*/
public Vector3f getVelocity();
/**
* @return True if reverb is enabled, otherwise false.
*
- * @see AudioSource#setReverbEnabled(boolean)
+ * @see AudioNode#setReverbEnabled(boolean)
*/
public boolean isReverbEnabled();
/**
* @return Filter for the reverberations of this audio source.
*
- * @see AudioSource#setReverbFilter(com.jme3.audio.Filter)
+ * @see AudioNode#setReverbFilter(com.jme3.audio.Filter)
*/
public Filter getReverbFilter();
/**
* @return Max distance for this audio source.
*
- * @see AudioSource#setMaxDistance(float)
+ * @see AudioNode#setMaxDistance(float)
*/
public float getMaxDistance();
/**
* @return The reference playing distance for the audio source.
*
- * @see AudioSource#setRefDistance(float)
+ * @see AudioNode#setRefDistance(float)
*/
public float getRefDistance();
/**
* @return True if the audio source is directional
*
- * @see AudioSource#setDirectional(boolean)
+ * @see AudioNode#setDirectional(boolean)
*/
public boolean isDirectional();
/**
* @return The direction of this audio source.
*
- * @see AudioSource#setDirection(com.jme3.math.Vector3f)
+ * @see AudioNode#setDirection(com.jme3.math.Vector3f)
*/
public Vector3f getDirection();
/**
* @return The directional audio source, cone inner angle.
*
- * @see AudioSource#setInnerAngle(float)
+ * @see AudioNode#setInnerAngle(float)
*/
public float getInnerAngle();
/**
* @return The directional audio source, cone outer angle.
*
- * @see AudioSource#setOuterAngle(float)
+ * @see AudioNode#setOuterAngle(float)
*/
public float getOuterAngle();
/**
* @return True if the audio source is positional.
*
- * @see AudioSource#setPositional(boolean)
+ * @see AudioNode#setPositional(boolean)
*/
public boolean isPositional();
diff --git a/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java b/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java
index 82c588d4d..a4bcddeea 100644
--- a/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java
+++ b/jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -897,7 +897,7 @@ public class ALAudioRenderer implements AudioRenderer, Runnable {
reclaimChannel = true;
} else {
// Stream still has data.
- // Buffer starvation occured.
+ // Buffer starvation occurred.
// Audio decoder thread will fill the data
// and start the channel again.
}
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java
index 253ae735f..d9e9d5b11 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -285,7 +285,7 @@ public class Cinematic extends AbstractCinematicEvent implements AppState {
/**
* used internally
*
- * @return
+ * @return true if initialized, otherwise false
*/
public boolean isInitialized() {
return initialized;
@@ -636,7 +636,7 @@ public class Cinematic extends AbstractCinematicEvent implements AppState {
*
* @param type the type of data
* @param key the key
- * @return
+ * @return the pre-existing object, or null
*/
public Object getEventData(String type, Object key) {
if (eventsData != null) {
diff --git a/jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java b/jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java
index 4e3a0df89..a0f978f0a 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -244,7 +244,7 @@ public class MotionPath implements Savable {
/**
* returns an iterator on the waypoints collection
- * @return
+ * @return an iterator
*/
public IteratorCollisionResult
represents a single collision instance
* between two {@link Collidable}. A collision check can result in many
- * collision instances (places where collision has occured).
+ * collision instances (places where collision has occurred).
*
* @author Kirill Vainer
*/
diff --git a/jme3-core/src/main/java/com/jme3/collision/CollisionResults.java b/jme3-core/src/main/java/com/jme3/collision/CollisionResults.java
index 087e143d7..93c5c81b5 100644
--- a/jme3-core/src/main/java/com/jme3/collision/CollisionResults.java
+++ b/jme3-core/src/main/java/com/jme3/collision/CollisionResults.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -130,7 +130,7 @@ public class CollisionResults implements Iterablevariation
should be a value
* from 0 to 1, where 0 means particles are to spawn with exactly
- * the velocity given in {@link ParticleEmitter#setStartVel(com.jme3.math.Vector3f) },
+ * the velocity specified in
+ * {@link com.jme3.effect.influencers.ParticleInfluencer#setInitialVelocity(com.jme3.math.Vector3f)},
* and 1 means particles are to spawn with a completely random velocity.
*
* @deprecated
diff --git a/jme3-core/src/main/java/com/jme3/effect/influencers/RadialParticleInfluencer.java b/jme3-core/src/main/java/com/jme3/effect/influencers/RadialParticleInfluencer.java
index fba223dc1..567763c9f 100644
--- a/jme3-core/src/main/java/com/jme3/effect/influencers/RadialParticleInfluencer.java
+++ b/jme3-core/src/main/java/com/jme3/effect/influencers/RadialParticleInfluencer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -106,7 +106,7 @@ public class RadialParticleInfluencer extends DefaultParticleInfluencer {
/**
* nullify y component of particle velocity to make the effect expand only on x and z axis
- * @return
+ * @return true if nullifying, otherwise false
*/
public boolean isHorizontal() {
return horizontal;
diff --git a/jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java b/jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java
index a8fa7de37..025d9a7b4 100644
--- a/jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java
+++ b/jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -289,7 +289,7 @@ public class EnvironmentCamera extends BaseAppState {
/**
* returns the images format used for the generated maps.
*
- * @return
+ * @return the enum value
*/
public Image.Format getImageFormat() {
return imageFormat;
@@ -311,7 +311,7 @@ public class EnvironmentCamera extends BaseAppState {
* @param axisX the x axis
* @param axisY the y axis
* @param axisZ tha z axis
- * @return
+ * @return a new instance
*/
protected Camera createOffCamera(final int mapSize, final Vector3f worldPos, final Vector3f axisX, final Vector3f axisY, final Vector3f axisZ) {
final Camera offCamera = new Camera(mapSize, mapSize);
@@ -327,7 +327,7 @@ public class EnvironmentCamera extends BaseAppState {
*
* @param name
* @param offCamera
- * @return
+ * @return a new instance
*/
protected ViewPort createOffViewPort(final String name, final Camera offCamera) {
final ViewPort offView = new ViewPort(name, offCamera);
@@ -341,7 +341,7 @@ public class EnvironmentCamera extends BaseAppState {
*
* @param mapSize
* @param offView
- * @return
+ * @return a new instance
*/
protected FrameBuffer createOffScreenFrameBuffer(int mapSize, ViewPort offView) {
// create offscreen framebuffer
diff --git a/jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java b/jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java
index 859472fe1..537c94cc8 100644
--- a/jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java
+++ b/jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -51,10 +51,11 @@ import java.util.concurrent.ScheduledThreadPoolExecutor;
* The process is as follows:
* 1. Create an EnvironmentCamera
* 2. give it a position in the scene
- * 3. call {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Node)}
+ * 3. call {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Spatial)}
* 4. add the created LightProbe to a node with the {@link Node#addLight(com.jme3.light.Light) } method.
*
- * Optionally for step 3 call {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Node, com.jme3.environment.generation.JobProgressListener) }
+ * Optionally for step 3 call
+ * {@link #makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Spatial, com.jme3.environment.generation.JobProgressListener)}
* with a {@link JobProgressListener} to be notified of the progress of the generation process.
*
* The generation will be split in several threads for faster generation.
@@ -78,7 +79,8 @@ public class LightProbeFactory {
* The process is thread safe.
* The created lightProbe will only be marked as ready when the rendering process is done.
*
- * If you want to monitor the process use {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Node, com.jme3.environment.generation.JobProgressListener) }
+ * If you want to monitor the process use
+ * {@link #makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Spatial, com.jme3.environment.generation.JobProgressListener)}
*
*
*
diff --git a/jme3-core/src/main/java/com/jme3/environment/generation/IrradianceSphericalHarmonicsGenerator.java b/jme3-core/src/main/java/com/jme3/environment/generation/IrradianceSphericalHarmonicsGenerator.java
index 2e80ea3aa..7a3f637ff 100644
--- a/jme3-core/src/main/java/com/jme3/environment/generation/IrradianceSphericalHarmonicsGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/environment/generation/IrradianceSphericalHarmonicsGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -70,7 +70,7 @@ public class IrradianceSphericalHarmonicsGenerator extends RunnableWithProgress
* Fills all the generation parameters
*
* @param sourceMap the source cube map
- * {@link EnvMapUtils.FixSeamsMethod}
+ * {@link com.jme3.environment.util.EnvMapUtils.FixSeamsMethod}
* @param store The cube map to store the result in.
*/
public void setGenerationParam(TextureCubeMap sourceMap, LightProbe store) {
diff --git a/jme3-core/src/main/java/com/jme3/environment/generation/PrefilteredEnvMapFaceGenerator.java b/jme3-core/src/main/java/com/jme3/environment/generation/PrefilteredEnvMapFaceGenerator.java
index fbfa73669..cd4f96998 100644
--- a/jme3-core/src/main/java/com/jme3/environment/generation/PrefilteredEnvMapFaceGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/environment/generation/PrefilteredEnvMapFaceGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -96,8 +96,9 @@ public class PrefilteredEnvMapFaceGenerator extends RunnableWithProgress {
* @param sourceMap the source cube map
* @param targetMapSize the size of the generated map (width or height in
* pixel)
- * @param fixSeamsMethod the method used to fix seams as described here
- * {@link EnvMapUtils.FixSeamsMethod}
+ * @param fixSeamsMethod the method used to fix seams as described in
+ * {@link com.jme3.environment.util.EnvMapUtils.FixSeamsMethod}
+ * @param genType
* @param store The cube map to store the result in.
*/
public void setGenerationParam(TextureCubeMap sourceMap, int targetMapSize, EnvMapUtils.FixSeamsMethod fixSeamsMethod, EnvMapUtils.GenerationType genType, TextureCubeMap store) {
@@ -331,8 +332,8 @@ public class PrefilteredEnvMapFaceGenerator extends RunnableWithProgress {
*
* @param xi
* @param a2
- * @param store
- * @return
+ * @param store caller-provided storage
+ * @return either store or a new vector (not null)
*/
public Vector3f importanceSampleGGX(Vector4f xi, float a2, Vector3f store) {
if (store == null) {
diff --git a/jme3-core/src/main/java/com/jme3/environment/generation/RunnableWithProgress.java b/jme3-core/src/main/java/com/jme3/environment/generation/RunnableWithProgress.java
index 33fc922c6..dec5abd2a 100644
--- a/jme3-core/src/main/java/com/jme3/environment/generation/RunnableWithProgress.java
+++ b/jme3-core/src/main/java/com/jme3/environment/generation/RunnableWithProgress.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -63,7 +63,7 @@ public abstract class RunnableWithProgress implements Runnable {
/**
* return the current progress of the process.
*
- * @return
+ * @return fraction (≥0, ≤1)
*/
public double getProgress() {
return (double) progress / (double) end;
diff --git a/jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java b/jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java
index 91b65655e..8f7ad841c 100644
--- a/jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java
+++ b/jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -136,13 +136,13 @@ public class EnvMapUtils {
* original ones. see {@link ByteBuffer#duplicate()}
*
* Use this if you need to read from the map from multiple threads, it
- * should garanty the thread safety. Note that if you want to write to the
+ * should guaranty the thread safety. Note that if you want to write to the
* cube map you have to make sure that the different thread do not write to
* the same area of the buffer. The position, limit and mark are not an
* issue.
*
* @param sourceMap
- * @return
+ * @return a new instance
*/
public static TextureCubeMap duplicateCubeMap(TextureCubeMap sourceMap) {
Image srcImg = sourceMap.getImage();
@@ -233,7 +233,7 @@ public class EnvMapUtils {
* @param face the face to consider
* @param store a vector3f where the resulting vector will be stored
* @param fixSeamsMethod the method to fix the seams
- * @return
+ * @return either store or a new vector
*/
public static Vector3f getVectorFromCubemapFaceTexCoord(int x, int y, int mapSize, int face, Vector3f store, FixSeamsMethod fixSeamsMethod) {
if (store == null) {
@@ -396,12 +396,12 @@ public class EnvMapUtils {
/**
* same as
- * {@link EnvMapUtils#getSphericalHarmonicsCoefficents(com.jme3.texture.TextureCubeMap, com.jme3.utils.EnvMapUtils.FixSeamsMethod)}
+ * {@link #getSphericalHarmonicsCoefficents(com.jme3.texture.TextureCubeMap, com.jme3.environment.util.EnvMapUtils.FixSeamsMethod)}
* the fix method used is {@link FixSeamsMethod#Wrap}
*
* @param cubeMap the environment cube map to compute SH for
- * @return an array of 9 vector3f representing thos coefficients for each
- * r,g,b channnel
+ * @return an array of 9 vectors representing the coefficients for each
+ * RGB channel
*/
public static Vector3f[] getSphericalHarmonicsCoefficents(TextureCubeMap cubeMap) {
return getSphericalHarmonicsCoefficents(cubeMap, FixSeamsMethod.Wrap);
@@ -419,8 +419,8 @@ public class EnvMapUtils {
* @param cubeMap the environment cube map to compute SH for
* @param fixSeamsMethod method to fix seams when computing the SH
* coefficients
- * @return an array of 9 vector3f representing thos coefficients for each
- * r,g,b channnel
+ * @return an array of 9 vectors representing the coefficients for each
+ * RGB channel
*/
public static Vector3f[] getSphericalHarmonicsCoefficents(TextureCubeMap cubeMap, FixSeamsMethod fixSeamsMethod) {
@@ -604,7 +604,7 @@ public class EnvMapUtils {
*
* @param cubeMap the cube map
* @param assetManager the asset Manager
- * @return
+ * @return a new Node
*/
public static Node getCubeMapCrossDebugView(TextureCubeMap cubeMap, AssetManager assetManager) {
Node n = new Node("CubeMapDebug" + cubeMap.getName());
diff --git a/jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java b/jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java
index 53565a753..31c51c971 100644
--- a/jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java
+++ b/jme3-core/src/main/java/com/jme3/environment/util/LightsDebugState.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -157,7 +157,7 @@ public class LightsDebugState extends BaseAppState {
/**
* returns the scale of the probe's debug sphere
- * @return
+ * @return the scale factor
*/
public float getProbeScale() {
return probeScale;
diff --git a/jme3-core/src/main/java/com/jme3/font/BitmapCharacterSet.java b/jme3-core/src/main/java/com/jme3/font/BitmapCharacterSet.java
index 8760e0ec0..f1c6f644e 100644
--- a/jme3-core/src/main/java/com/jme3/font/BitmapCharacterSet.java
+++ b/jme3-core/src/main/java/com/jme3/font/BitmapCharacterSet.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -180,7 +180,7 @@ public class BitmapCharacterSet implements Savable {
* Merge two fonts.
* If two font have the same style, merge will fail.
* @param styleSet Style must be assigned to this.
- * @author Yonghoon
+ * author: Yonghoon
*/
public void merge(BitmapCharacterSet styleSet) {
if (this.renderedSize != styleSet.renderedSize) {
diff --git a/jme3-core/src/main/java/com/jme3/font/BitmapFont.java b/jme3-core/src/main/java/com/jme3/font/BitmapFont.java
index 856268c37..694278057 100644
--- a/jme3-core/src/main/java/com/jme3/font/BitmapFont.java
+++ b/jme3-core/src/main/java/com/jme3/font/BitmapFont.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -261,7 +261,7 @@ public class BitmapFont implements Savable {
* Merge two fonts.
* If two font have the same style, merge will fail.
* @param newFont Style must be assigned to this.
- * @author Yonghoon
+ * author: Yonghoon
*/
public void merge(BitmapFont newFont) {
charSet.merge(newFont.charSet);
diff --git a/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java b/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
index c185393f2..43f0941fc 100644
--- a/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
+++ b/jme3-core/src/main/java/com/jme3/input/ChaseCamera.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -268,7 +268,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* Cleans up the input mappings from the input manager.
* Undoes the work of registerWithInput().
- * @param inputManager InputManager from which to cleanup mappings.
+ * @param mgr the InputManager to clean up
*/
public void cleanupWithInput(InputManager mgr){
mgr.deleteMapping(CameraInput.CHASECAM_TOGGLEROTATE);
@@ -583,7 +583,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
* clone this camera for a spatial
*
* @param spatial
- * @return
+ * @return never
*/
@Deprecated
@Override
@@ -707,7 +707,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the chasing sensitivity
- * @return
+ * @return the sensitivity
*/
public float getChasingSensitivity() {
return chasingSensitivity;
@@ -726,7 +726,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* Returns the rotation sensitivity
- * @return
+ * @return the sensitivity
*/
public float getRotationSensitivity() {
return rotationSensitivity;
@@ -745,7 +745,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns true if the trailing is enabled
- * @return
+ * @return true if enabled, otherwise false
*/
public boolean isTrailingEnabled() {
return trailingEnabled;
@@ -763,7 +763,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
*
* returns the trailing rotation inertia
- * @return
+ * @return the inertia
*/
public float getTrailingRotationInertia() {
return trailingRotationInertia;
@@ -781,7 +781,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the trailing sensitivity
- * @return
+ * @return the sensitivity
*/
public float getTrailingSensitivity() {
return trailingSensitivity;
@@ -799,7 +799,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the zoom sensitivity
- * @return
+ * @return the sensitivity
*/
public float getZoomSensitivity() {
return zoomSensitivity;
@@ -863,7 +863,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* @return If drag to rotate feature is enabled.
*
- * @see FlyByCamera#setDragToRotate(boolean)
+ * @see #setDragToRotate(boolean)
*/
public boolean isDragToRotate() {
return dragToRotate;
@@ -904,7 +904,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* return the current distance from the camera to the target
- * @return
+ * @return the distance
*/
public float getDistanceToTarget() {
return distance;
@@ -912,7 +912,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the current horizontal rotation around the target in radians
- * @return
+ * @return the angle
*/
public float getHorizontalRotation() {
return rotation;
@@ -920,7 +920,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the current vertical rotation around the target in radians.
- * @return
+ * @return the angle in radians
*/
public float getVerticalRotation() {
return vRotation;
@@ -928,7 +928,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* returns the offset from the target's position where the camera looks at
- * @return
+ * @return the pre-existing vector
*/
public Vector3f getLookAtOffset() {
return lookAtOffset;
@@ -952,7 +952,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control, Jme
/**
* Returns the up vector of the camera used for the lookAt on the target
- * @return
+ * @return the pre-existing vector
*/
public Vector3f getUpVector() {
return initialUpVec;
diff --git a/jme3-core/src/main/java/com/jme3/input/event/InputEvent.java b/jme3-core/src/main/java/com/jme3/input/event/InputEvent.java
index 761abc1aa..e22c2a3d0 100644
--- a/jme3-core/src/main/java/com/jme3/input/event/InputEvent.java
+++ b/jme3-core/src/main/java/com/jme3/input/event/InputEvent.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ public abstract class InputEvent {
* The time when the event occurred. This is relative to
* {@link Input#getInputTimeNanos() }.
*
- * @return time when the event occured
+ * @return time when the event occurred
*/
public long getTime(){
return time;
diff --git a/jme3-core/src/main/java/com/jme3/input/event/JoyAxisEvent.java b/jme3-core/src/main/java/com/jme3/input/event/JoyAxisEvent.java
index 5ba56c43b..724b7c1bb 100644
--- a/jme3-core/src/main/java/com/jme3/input/event/JoyAxisEvent.java
+++ b/jme3-core/src/main/java/com/jme3/input/event/JoyAxisEvent.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -53,7 +53,7 @@ public class JoyAxisEvent extends InputEvent {
/**
* Returns the JoystickAxis that triggered this event.
*
- * @see JoystickAxis#assignAxis(java.lang.String, java.lang.String, int)
+ * @see com.jme3.input.JoystickAxis#assignAxis(java.lang.String, java.lang.String)
*/
public JoystickAxis getAxis() {
return axis;
@@ -64,7 +64,7 @@ public class JoyAxisEvent extends InputEvent {
*
* @return joystick axis index.
*
- * @see Joystick#assignAxis(java.lang.String, java.lang.String, int)
+ * @see com.jme3.input.JoystickAxis#assignAxis(java.lang.String, java.lang.String)
*/
public int getAxisIndex() {
return axis.getAxisId();
diff --git a/jme3-core/src/main/java/com/jme3/input/event/JoyButtonEvent.java b/jme3-core/src/main/java/com/jme3/input/event/JoyButtonEvent.java
index 4a2c701d7..f69e3f029 100644
--- a/jme3-core/src/main/java/com/jme3/input/event/JoyButtonEvent.java
+++ b/jme3-core/src/main/java/com/jme3/input/event/JoyButtonEvent.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -52,7 +52,8 @@ public class JoyButtonEvent extends InputEvent {
/**
* Returns the JoystickButton that triggered this event.
*
- * @see JoystickAxis#assignAxis(java.lang.String, java.lang.String, int)
+ * @see com.jme3.input.JoystickAxis#assignAxis(java.lang.String, java.lang.String)
+ * @return the button
*/
public JoystickButton getButton() {
return button;
diff --git a/jme3-core/src/main/java/com/jme3/light/LightProbe.java b/jme3-core/src/main/java/com/jme3/light/LightProbe.java
index d6d716877..c2e011c6c 100644
--- a/jme3-core/src/main/java/com/jme3/light/LightProbe.java
+++ b/jme3-core/src/main/java/com/jme3/light/LightProbe.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -54,7 +54,8 @@ import java.util.logging.Logger;
* - The irradiance spherical harmonics factors (used for indirect diffuse lighting in the PBR pipeline).
* - The prefiltered environment map (used for indirect specular lighting and reflection in the PBE pipeline).
* Note that when instantiating the LightProbe, both of those structures are null.
- * To compute them see {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Node)}
+ * To compute them see
+ * {@link com.jme3.environment.LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Spatial)}
* and {@link EnvironmentCamera}.
*
* The light probe has an area of effect centered on its position. It can have a Spherical area or an Oriented Box area
@@ -86,7 +87,9 @@ public class LightProbe extends Light implements Savable {
/**
* Empty constructor used for serialization.
- * You should never call it, use {@link LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Node)} instead
+ * You should never call it, use
+ * {@link com.jme3.environment.LightProbeFactory#makeProbe(com.jme3.environment.EnvironmentCamera, com.jme3.scene.Spatial)}
+ * instead.
*/
public LightProbe() {
}
diff --git a/jme3-core/src/main/java/com/jme3/material/Material.java b/jme3-core/src/main/java/com/jme3/material/Material.java
index ddd75ace7..0f4528993 100644
--- a/jme3-core/src/main/java/com/jme3/material/Material.java
+++ b/jme3-core/src/main/java/com/jme3/material/Material.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -361,7 +361,7 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
*
*
diff --git a/jme3-core/src/main/java/com/jme3/renderer/Renderer.java b/jme3-core/src/main/java/com/jme3/renderer/Renderer.java
index 201729da8..cb1b21b4e 100644
--- a/jme3-core/src/main/java/com/jme3/renderer/Renderer.java
+++ b/jme3-core/src/main/java/com/jme3/renderer/Renderer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -381,14 +381,14 @@ public interface Renderer {
* set shall undergo an sRGB to linear RGB color conversion when read by a shader.
*
* The conversion is performed for the following formats:
- * - {@link Image.Format#RGB8}
- * - {@link Image.Format#RGBA8}
- * - {@link Image.Format#Luminance8}
- * - {@link Image.Format#Luminance8Alpha8}
- * - {@link Image.Format#DXT1}
- * - {@link Image.Format#DXT1A}
- * - {@link Image.Format#DXT3}
- * - {@link Image.Format#DXT5}
+ * - {@link com.jme3.texture.Image.Format#RGB8}
+ * - {@link com.jme3.texture.Image.Format#RGBA8}
+ * - {@link com.jme3.texture.Image.Format#Luminance8}
+ * - {@link com.jme3.texture.Image.Format#Luminance8Alpha8}
+ * - {@link com.jme3.texture.Image.Format#DXT1}
+ * - {@link com.jme3.texture.Image.Format#DXT1A}
+ * - {@link com.jme3.texture.Image.Format#DXT3}
+ * - {@link com.jme3.texture.Image.Format#DXT5}
*
* For all other formats, no conversion is performed.
*
diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
index 372233dd6..402c8a3bb 100644
--- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
+++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -2821,7 +2821,7 @@ public final class GLRenderer implements Renderer {
// OK: Works on all platforms.
break;
case UnsignedInt:
- // Requres extension on OpenGL ES 2.
+ // Requires extension on OpenGL ES 2.
if (!caps.contains(Caps.IntegerIndexBuffer)) {
throw new RendererException("32-bit index buffers are not supported by the video hardware");
}
diff --git a/jme3-core/src/main/java/com/jme3/scene/BatchNode.java b/jme3-core/src/main/java/com/jme3/scene/BatchNode.java
index d2d44dd56..f50780967 100644
--- a/jme3-core/src/main/java/com/jme3/scene/BatchNode.java
+++ b/jme3-core/src/main/java/com/jme3/scene/BatchNode.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,7 +57,7 @@ import com.jme3.util.clone.JmeCloneable;
* The geometries are directly attached to the node in the scene graph.
* Usage is like any other node except you have to call the {@link #batch()} method once all the geometries have been attached to the sub scene graph and their material set
* (see todo more automagic for further enhancements)
- * All the geometries that have been batched are set to not be rendered - {@link CullHint} is left intact.
+ * All the geometries that have been batched are set to not be rendered - {@link Spatial.CullHint} is left intact.
* The sub geometries can be transformed as usual, their transforms are used to update the mesh of the geometryBatch.
* Sub geoms can be removed but it may be slower than the normal spatial removing
* Sub geoms can be added after the batch() method has been called but won't be batched and will just be rendered as normal geometries.
diff --git a/jme3-core/src/main/java/com/jme3/scene/Geometry.java b/jme3-core/src/main/java/com/jme3/scene/Geometry.java
index 437036222..005d0e8c7 100644
--- a/jme3-core/src/main/java/com/jme3/scene/Geometry.java
+++ b/jme3-core/src/main/java/com/jme3/scene/Geometry.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -603,7 +603,7 @@ public class Geometry extends Spatial {
/**
* returns true if the morph state has changed on the last frame.
- * @return
+ * @return true if changed, otherwise false
*/
public boolean isDirtyMorph() {
return dirtyMorph;
@@ -621,7 +621,7 @@ public class Geometry extends Spatial {
/**
* returns the morph state of this Geometry.
* Used internally by the MorphControl.
- * @return
+ * @return an array
*/
public float[] getMorphState() {
if (morphState == null) {
diff --git a/jme3-core/src/main/java/com/jme3/scene/Mesh.java b/jme3-core/src/main/java/com/jme3/scene/Mesh.java
index 1c70512db..caffca063 100644
--- a/jme3-core/src/main/java/com/jme3/scene/Mesh.java
+++ b/jme3-core/src/main/java/com/jme3/scene/Mesh.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1456,7 +1456,7 @@ public class Mesh implements Savable, Cloneable, JmeCloneable {
/**
* @deprecated use isAnimatedByJoint
* @param boneIndex
- * @return
+ * @return true if animated by that bone, otherwise false
*/
@Deprecated
public boolean isAnimatedByBone(int boneIndex) {
@@ -1512,7 +1512,7 @@ public class Mesh implements Savable, Cloneable, JmeCloneable {
/**
* Gets the amount of vertices used for each patch;
- * @return
+ * @return the count (≥0)
*/
public int getPatchVertexCount() {
return patchVertexCount;
diff --git a/jme3-core/src/main/java/com/jme3/scene/Spatial.java b/jme3-core/src/main/java/com/jme3/scene/Spatial.java
index c44db734b..06bc63f7f 100644
--- a/jme3-core/src/main/java/com/jme3/scene/Spatial.java
+++ b/jme3-core/src/main/java/com/jme3/scene/Spatial.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -158,7 +158,7 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Cloneab
/**
* Used for smart asset caching
*
- * @see AssetKey#useSmartCache()
+ * @see com.jme3.asset.AssetKey#getCacheType()
*/
protected AssetKey key;
/**
diff --git a/jme3-core/src/main/java/com/jme3/scene/mesh/IndexBuffer.java b/jme3-core/src/main/java/com/jme3/scene/mesh/IndexBuffer.java
index 43846b541..3fc4b318e 100644
--- a/jme3-core/src/main/java/com/jme3/scene/mesh/IndexBuffer.java
+++ b/jme3-core/src/main/java/com/jme3/scene/mesh/IndexBuffer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -84,7 +84,7 @@ public abstract class IndexBuffer {
}
/**
- * @return
+ * @return the count (≥0)
* @see Buffer#remaining()
*/
public int remaining() {
@@ -94,7 +94,7 @@ public abstract class IndexBuffer {
/**
* Returns the vertex index for the current position.
*
- * @return
+ * @return the index
*/
public abstract int get();
@@ -102,7 +102,7 @@ public abstract class IndexBuffer {
* Returns the vertex index for the given index in the index buffer.
*
* @param i The index inside the index buffer
- * @return
+ * @return the index
*/
public abstract int get(int i);
diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java
index 8060498f9..c3c458374 100644
--- a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java
+++ b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -80,7 +80,7 @@ public class Dome extends Mesh {
* Influences how round the base of the dome is.
* @param radius
* Radius of the dome.
- * @see #Dome(com.jme.math.Vector3f, int, int, float)
+ * @see #Dome(com.jme3.math.Vector3f, int, int, float)
*/
public Dome(int planes, int radialSamples, float radius) {
this(new Vector3f(0, 0, 0), planes, radialSamples, radius);
diff --git a/jme3-core/src/main/java/com/jme3/shader/Shader.java b/jme3-core/src/main/java/com/jme3/shader/Shader.java
index 05264f8db..cd93ab9f3 100644
--- a/jme3-core/src/main/java/com/jme3/shader/Shader.java
+++ b/jme3-core/src/main/java/com/jme3/shader/Shader.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -220,7 +220,7 @@ public final class Shader extends NativeObject {
}
/**
- * Creates a new shader, {@link #initialize() } must be called
+ * Creates a new shader, initialize() must be called
* after this constructor for the shader to be usable.
*/
public Shader(){
diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
index ba5fc0161..68a7b80d8 100644
--- a/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
+++ b/jme3-core/src/main/java/com/jme3/shader/ShaderNodeDefinition.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -170,7 +170,7 @@ public class ShaderNodeDefinition implements Savable {
/**
* return the path of this definition
- * @return
+ * @return the path
*/
public String getPath() {
return path;
diff --git a/jme3-core/src/main/java/com/jme3/shader/UniformBindingManager.java b/jme3-core/src/main/java/com/jme3/shader/UniformBindingManager.java
index 340fc162c..6b9fc82be 100644
--- a/jme3-core/src/main/java/com/jme3/shader/UniformBindingManager.java
+++ b/jme3-core/src/main/java/com/jme3/shader/UniformBindingManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -43,7 +43,7 @@ import java.util.ArrayList;
*
+ *
*
*
- *
+ *
*/
-package com.jme3.opencl;
//TODO: add profiling to Kernel, CommandQueue
diff --git a/jme3-core/src/main/java/com/jme3/post/Filter.java b/jme3-core/src/main/java/com/jme3/post/Filter.java
index ff1f71017..d594b7be8 100644
--- a/jme3-core/src/main/java/com/jme3/post/Filter.java
+++ b/jme3-core/src/main/java/com/jme3/post/Filter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -221,7 +221,7 @@ public abstract class Filter implements Savable {
/**
* returns the default pass depth format
- * @return
+ * @return the enum value
*/
protected Format getDefaultPassDepthFormat() {
return Format.Depth;
@@ -371,14 +371,14 @@ public abstract class Filter implements Savable {
/**
* returns the default pass frame buffer
- * @return
+ * @return the pre-existing buffer
*/
protected FrameBuffer getRenderFrameBuffer() {
return defaultPass.renderFrameBuffer;
}
/**
- * sets the default pas frame buffer
+ * sets the default pass frame buffer
* @param renderFrameBuffer
*/
protected void setRenderFrameBuffer(FrameBuffer renderFrameBuffer) {
@@ -387,7 +387,7 @@ public abstract class Filter implements Savable {
/**
* returns the rendered texture of this filter
- * @return
+ * @return the pre-existing texture
*/
protected Texture2D getRenderedTexture() {
return defaultPass.renderedTexture;
@@ -434,7 +434,7 @@ public abstract class Filter implements Savable {
/**
* returns the list of the postRender passes
- * @return
+ * @return the pre-existing List
*/
protected ListTechniqueDefLogic
is used to customize how
* a material should be rendered.
*
- * Typically used to implement {@link LightMode lighting modes}.
+ * Typically used to implement {@link com.jme3.material.TechniqueDef.LightMode lighting modes}.
* Implementations can register
- * {@link TechniqueDef#addShaderUnmappedDefine(java.lang.String) unmapped defines}
+ * {@link com.jme3.material.TechniqueDef#addShaderUnmappedDefine(java.lang.String, com.jme3.shader.VarType) unmapped defines}
* in their constructor and then later set them based on the geometry
* or light environment being rendered.
*
@@ -69,7 +69,7 @@ public interface TechniqueDefLogic {
* @param lights The lights with which the geometry shall be rendered. This
* list must not include culled lights.
* @param defines The define list used by the technique, any
- * {@link TechniqueDef#addShaderUnmappedDefine(java.lang.String) unmapped defines}
+ * {@link com.jme3.material.TechniqueDef#addShaderUnmappedDefine(java.lang.String, com.jme3.shader.VarType) unmapped defines}
* should be set here to change shader behavior.
*
* @return The shader to use for rendering.
@@ -80,16 +80,16 @@ public interface TechniqueDefLogic {
/**
* Requests that the TechniqueDefLogic
renders the given geometry.
*
- * Fixed material functionality such as {@link RenderState},
- * {@link MatParam material parameters}, and
- * {@link UniformBinding uniform bindings}
+ * Fixed material functionality such as {@link com.jme3.material.RenderState},
+ * {@link com.jme3.material.MatParam material parameters}, and
+ * {@link com.jme3.shader.UniformBinding uniform bindings}
* have already been applied by the material, however,
- * {@link RenderState}, {@link Uniform uniforms}, {@link Texture textures},
- * can still be overriden.
+ * {@link com.jme3.material.RenderState}, {@link Uniform uniforms}, {@link Texture textures},
+ * can still be overridden.
*
* @param renderManager The render manager to perform the rendering against.
- * * @param shader The shader that was selected by this logic in
- * {@link #makeCurrent(com.jme3.asset.AssetManager, com.jme3.renderer.RenderManager, java.util.EnumSet, com.jme3.shader.DefineList)}.
+ * @param shader The shader that was selected by this logic in
+ * {@link #makeCurrent(com.jme3.asset.AssetManager, com.jme3.renderer.RenderManager, java.util.EnumSet, com.jme3.light.LightList, com.jme3.shader.DefineList)}.
* @param geometry The geometry to render
* @param lights Lights which influence the geometry.
*/
diff --git a/jme3-core/src/main/java/com/jme3/math/EaseFunction.java b/jme3-core/src/main/java/com/jme3/math/EaseFunction.java
index c2f5383f2..76d6a7ded 100644
--- a/jme3-core/src/main/java/com/jme3/math/EaseFunction.java
+++ b/jme3-core/src/main/java/com/jme3/math/EaseFunction.java
@@ -7,7 +7,7 @@ public interface EaseFunction {
/**
* @param value a value from 0 to 1. Passing a value out of this range will have unexpected behavior.
- * @return
+ * @return the blended value
*/
float apply(float value);
}
diff --git a/jme3-core/src/main/java/com/jme3/math/Matrix4f.java b/jme3-core/src/main/java/com/jme3/math/Matrix4f.java
index 6b260ee31..ff51e3c7b 100644
--- a/jme3-core/src/main/java/com/jme3/math/Matrix4f.java
+++ b/jme3-core/src/main/java/com/jme3/math/Matrix4f.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1741,7 +1741,7 @@ public final class Matrix4f implements Savable, Cloneable, java.io.Serializable
}
/**
- * Retreives the scale vector from the matrix.
+ * Retrieves the scale vector from the matrix.
*
* @return the scale vector
*/
@@ -1751,13 +1751,13 @@ public final class Matrix4f implements Savable, Cloneable, java.io.Serializable
return result;
}
- /**
- * Retreives the scale vector from the matrix and stores it into a given
- * vector.
+ /**
+ * Retrieves the scale vector from the matrix and stores it into a given
+ * vector.
*
* @param store the vector where the scale will be stored
* @return the store vector
- */
+ */
public Vector3f toScaleVector(Vector3f store) {
float scaleX = (float) Math.sqrt(m00 * m00 + m10 * m10 + m20 * m20);
float scaleY = (float) Math.sqrt(m01 * m01 + m11 * m11 + m21 * m21);
diff --git a/jme3-core/src/main/java/com/jme3/opencl/Context.java b/jme3-core/src/main/java/com/jme3/opencl/Context.java
index b53906a3c..3b48c29d9 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/Context.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/Context.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -87,7 +87,7 @@ public abstract class Context extends AbstractOpenCLObject {
* memory size and so on, are queried over the Device instances.
*
* The available devices were specified by a {@link PlatformChooser}.
- * @return
+ * @return a list of devices
*/
public abstract List extends Device> getDevices();
@@ -184,10 +184,10 @@ public abstract class Context extends AbstractOpenCLObject {
* Note: The vertex buffer must already been uploaded to the GPU,
* i.e. it must be used at least once for drawing.
*
- * {@link #ImageDescriptor(com.jme3.opencl.Image.ImageType, long, long, long, long) }
+ * There exist two constructors:
+ * ImageDescriptor(ImageType, long, long, long, long)
* is used when an image with new memory should be created (used most often).
- * {@link #ImageDescriptor(com.jme3.opencl.Image.ImageType, long, long, long, long, long, long, java.nio.ByteBuffer) }
+ * ImageDescriptor(ImageType, long, long, long, long, long, long, ByteBuffer)
* creates an image using the provided {@code ByteBuffer} as source.
*/
public static class ImageDescriptor { //Struct
@@ -270,12 +270,10 @@ memory layout in which channels are stored in the image.
public abstract long getDepth();
/**
* @return the row pitch when the image was created from a host buffer
- * @see ImageDescriptor#ImageDescriptor(com.jme3.opencl.Image.ImageType, long, long, long, long, long, long, java.nio.ByteBuffer)
*/
public abstract long getRowPitch();
/**
* @return the slice pitch when the image was created from a host buffer
- * @see ImageDescriptor#ImageDescriptor(com.jme3.opencl.Image.ImageType, long, long, long, long, long, long, java.nio.ByteBuffer)
*/
public abstract long getSlicePitch();
/**
diff --git a/jme3-core/src/main/java/com/jme3/opencl/KernelCompilationException.java b/jme3-core/src/main/java/com/jme3/opencl/KernelCompilationException.java
index a0e20c9e5..6203dd641 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/KernelCompilationException.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/KernelCompilationException.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2016 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,10 +32,10 @@
package com.jme3.opencl;
/**
- * This exception is thrown by {@link Program#build() } and {@link Program#build(java.lang.String) }
+ * This exception is thrown by {@link Program#build()}
* when the compilation failed.
* The error log returned by {@link #getLog() } contains detailed information
- * where the error occured.
+ * where the error occurred.
* @author shaman
*/
public class KernelCompilationException extends OpenCLException {
@@ -49,7 +49,7 @@ public class KernelCompilationException extends OpenCLException {
/**
* The output of the compiler
- * @return
+ * @return the output text
*/
public String getLog() {
return log;
diff --git a/jme3-core/src/main/java/com/jme3/opencl/Program.java b/jme3-core/src/main/java/com/jme3/opencl/Program.java
index c55f320d5..5c4342b0a 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/Program.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/Program.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2016 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -74,7 +74,6 @@ public abstract class Program extends AbstractOpenCLObject {
/**
* Builds this program without additional arguments
* @throws KernelCompilationException if the compilation fails
- * @see #build(java.lang.String)
*/
public void build() throws KernelCompilationException {
build("", (Device[]) null);
@@ -85,7 +84,7 @@ public abstract class Program extends AbstractOpenCLObject {
* @param name the name of the kernel as defined in the source code
* @return the kernel object
* @throws OpenCLException if the kernel was not found or some other
- * error occured
+ * error occurred
*/
public abstract Kernel createKernel(String name);
diff --git a/jme3-core/src/main/java/com/jme3/opencl/package-info.java b/jme3-core/src/main/java/com/jme3/opencl/package-info.java
index 36ad65eb4..0a3552d5f 100644
--- a/jme3-core/src/main/java/com/jme3/opencl/package-info.java
+++ b/jme3-core/src/main/java/com/jme3/opencl/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,6 +30,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+package com.jme3.opencl;
/**
* This package contains an API for using OpenCL together with jME3.
*
@@ -77,8 +79,7 @@
* of the buffer, the behavior is completely undefined and may often result in
* a program cache later on.
* {@link com.jme3.opencl.Image} objects are structured one, two or three dimensional
- * memory chunks of a fixed type. They are created by
- * {@link com.jme3.opencl.Context#createImage(com.jme3.opencl.MemoryAccess, com.jme3.opencl.Image.ImageFormat, com.jme3.opencl.Image.ImageDescriptor, java.nio.ByteBuffer) }.
+ * memory chunks of a fixed type. They are created by Context.createImage().
* They need special functions in the kernel code to write to or read from images.
* Both buffer and image objects provide methods for copying between buffers and images,
* reading and writing to host code and directly mapping memory parts to the host code.
@@ -158,6 +159,5 @@
* OpenCL 1.2 and 2.0.
*
- *
*/
PartialNonPowerOfTwoTextures,
diff --git a/jme3-core/src/main/java/com/jme3/renderer/RenderContext.java b/jme3-core/src/main/java/com/jme3/renderer/RenderContext.java
index 4599fdbb3..f7626f1bd 100644
--- a/jme3-core/src/main/java/com/jme3/renderer/RenderContext.java
+++ b/jme3-core/src/main/java/com/jme3/renderer/RenderContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -192,19 +192,19 @@ public class RenderContext {
/**
* Currently bound element array vertex buffer.
*
- * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int)
+ * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int, com.jme3.scene.VertexBuffer[])
*/
public int boundElementArrayVBO;
/**
- * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int)
+ * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int, com.jme3.scene.VertexBuffer[])
*/
public int boundVertexArray;
/**
* Currently bound array vertex buffer.
*
- * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int)
+ * @see Renderer#renderMesh(com.jme3.scene.Mesh, int, int, com.jme3.scene.VertexBuffer[])
*/
public int boundArrayVBO;
diff --git a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
index cc86b5ad4..54e661e66 100644
--- a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
+++ b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -541,7 +541,7 @@ public class RenderManager {
* If a {@link #setForcedTechnique(java.lang.String) forced technique} is
* set on this RenderManager, then it is selected automatically
* on the geometry's material and is used for rendering. Otherwise, one
- * of the {@link MaterialDef#getDefaultTechniques() default techniques} is
+ * of the {@link com.jme3.material.MaterialDef#getTechniqueDefsNames() default techniques} is
* used.
* UniformBindingManager
helps {@link RenderManager} to manage
* {@link UniformBinding uniform bindings}.
*
- * The {@link #updateUniformBindings(java.util.List) } will update
+ * The {@link #updateUniformBindings(com.jme3.shader.Shader)} method will update
* a given list of uniforms based on the current state
* of the manager.
*
@@ -223,8 +223,6 @@ public class UniformBindingManager {
* Internal use only. Sets the world matrix to use for future
* rendering. This has no effect unless objects are rendered manually
* using {@link Material#render(com.jme3.scene.Geometry, com.jme3.renderer.RenderManager) }.
- * Using {@link #renderGeometry(com.jme3.scene.Geometry) } will
- * override this value.
*
* @param mat The world matrix to set
*/
diff --git a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
index 7146e0d22..abdbe054d 100644
--- a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
+++ b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -74,8 +74,6 @@ public abstract class AbstractShadowFilter
* @return a new spatial representing the sky, ready to be attached to the
* scene graph
- * @deprecated use {@link SkyFactory#createSky(com.jme3.asset.AssetManager, java.lang.String, com.jme3.math.Vector3f, com.jme3.util.SkyFactory.EnvMapType)}
+ * @deprecated use {@link #createSky(com.jme3.asset.AssetManager, java.lang.String, com.jme3.util.SkyFactory.EnvMapType)}
*/
@Deprecated
public static Spatial createSky(AssetManager assetManager, String textureName, boolean sphereMap) {
diff --git a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikkTSpaceContext.java b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikkTSpaceContext.java
index dc56ac240..d45913b83 100644
--- a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikkTSpaceContext.java
+++ b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikkTSpaceContext.java
@@ -15,7 +15,7 @@ public interface MikkTSpaceContext {
* Returns the number of faces (triangles/quads) on the mesh to be
* processed.
*
- * @return
+ * @return the count (≥0)
*/
public int getNumFaces();
@@ -24,7 +24,7 @@ public interface MikkTSpaceContext {
* the range {0, 1, ..., getNumFaces()-1}
*
* @param face
- * @return
+ * @return the count (≥0)
*/
public int getNumVerticesOfFace(int face);
diff --git a/jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java b/jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java
index 2bcf82167..17a8e2067 100644
--- a/jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java
+++ b/jme3-core/src/main/java/com/jme3/util/xml/SAXUtil.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ public final class SAXUtil {
*
* @param i The string to parse
* @param def The default value if the string is null
- * @return
+ * @return the parsed value or def
* @throws SAXException
*/
public static int parseInt(String i, int def) throws SAXException{
diff --git a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java b/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java
index 5132fbd2f..1cd2c6d69 100644
--- a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java
+++ b/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -446,7 +446,7 @@ public class DDSLoader implements AssetLoader {
* @param flip Flip the loaded image by Y axis
* @param totalSize Total size of the image in bytes including the mipmaps
* @return A ByteBuffer containing the grayscale image data with mips.
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readGrayscale2D(boolean flip, int totalSize) throws IOException {
ByteBuffer buffer = BufferUtils.createByteBuffer(totalSize);
@@ -481,7 +481,7 @@ public class DDSLoader implements AssetLoader {
* @param flip Flip the image on the Y axis
* @param totalSize Size of the image in bytes including mipmaps
* @return ByteBuffer containing image data with mipmaps in the format specified by pixelFormat_
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readRGB2D(boolean flip, int totalSize) throws IOException {
int redCount = count(redMask),
@@ -547,7 +547,7 @@ public class DDSLoader implements AssetLoader {
*
* @param totalSize Total size of the image in bytes, including mipmaps
* @return ByteBuffer containing compressed DXT image in the format specified by pixelFormat_
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readDXT2D(boolean flip, int totalSize) throws IOException {
logger.finest("Source image format: DXT");
@@ -584,7 +584,7 @@ public class DDSLoader implements AssetLoader {
* @param flip Flip the loaded image by Y axis
* @param totalSize Total size of the image in bytes including the mipmaps
* @return A ByteBuffer containing the grayscale image data with mips.
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readGrayscale3D(boolean flip, int totalSize) throws IOException {
ByteBuffer buffer = BufferUtils.createByteBuffer(totalSize * depth);
@@ -622,7 +622,7 @@ public class DDSLoader implements AssetLoader {
* @param flip Flip the image on the Y axis
* @param totalSize Size of the image in bytes including mipmaps
* @return ByteBuffer containing image data with mipmaps in the format specified by pixelFormat_
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readRGB3D(boolean flip, int totalSize) throws IOException {
int redCount = count(redMask),
@@ -690,7 +690,7 @@ public class DDSLoader implements AssetLoader {
*
* @param totalSize Total size of the image in bytes, including mipmaps
* @return ByteBuffer containing compressed DXT image in the format specified by pixelFormat_
- * @throws java.io.IOException If an error occured while reading from InputStream
+ * @throws java.io.IOException If an error occurred while reading from InputStream
*/
public ByteBuffer readDXT3D(boolean flip, int totalSize) throws IOException {
logger.finest("Source image format: DXT");
@@ -738,7 +738,7 @@ public class DDSLoader implements AssetLoader {
* @return An ArrayList containing a single ByteBuffer for a 2D image, or 6 ByteBuffers for a cubemap.
* The cubemap ByteBuffer order is PositiveX, NegativeX, PositiveY, NegativeY, PositiveZ, NegativeZ.
*
- * @throws java.io.IOException If an error occured while reading from the stream.
+ * @throws java.io.IOException If an error occurred while reading from the stream.
*/
public ArrayList
+ * See http://en.wikipedia.org/wiki/Quad_buffering
* Once enabled, filters or scene processors that handle 3D stereo rendering
* could use this feature to render using hardware 3D stereo.
* Allows directly manipulating pixels of the image by writing and
* reading {@link ColorRGBA colors} at any coordinate, without
- * regard to the underlying {@link Image.Format format} of the image.
+ * regard to the underlying {@link com.jme3.texture.Image.Format format} of the image.
* NOTE: compressed and depth formats are not supported.
* Special RGB formats like RGB111110F and RGB9E5 are not supported
* at the moment, but may be added later on. For now
@@ -135,7 +135,7 @@ public abstract class ImageRaster {
* lower than 0.0 are still not allowed (as all formats are unsigned).
*