From 8a04afd7a1597261fcc2450cd84bd12956133947 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Wed, 11 Dec 2019 23:43:05 -0800 Subject: [PATCH] AnimControl: correct javadoc for the no-arg constructor (#1233) --- .../main/java/com/jme3/animation/AnimControl.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java b/jme3-core/src/main/java/com/jme3/animation/AnimControl.java index 7386e1084..022170a2e 100644 --- a/jme3-core/src/main/java/com/jme3/animation/AnimControl.java +++ b/jme3-core/src/main/java/com/jme3/animation/AnimControl.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 @@ -102,7 +102,9 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme } /** - * Serialization only. Do not use. + * Instantiate an animation control with no skeleton, suitable only for + * animations that don't contain any bone tracks. Also used for + * serialization. */ public AnimControl() { } @@ -144,6 +146,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Retrieve an animation from the list of animations. + * * @param name The name of the animation to retrieve. * @return The animation corresponding to the given name, or null, if no * such named animation exists. @@ -155,6 +158,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Adds an animation to be available for playing to this * AnimControl. + * * @param anim The animation to add. */ public void addAnim(Animation anim) { @@ -163,6 +167,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Remove an animation so that it is no longer available for playing. + * * @param anim The animation to remove. */ public void removeAnim(Animation anim) { @@ -231,6 +236,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Adds a new listener to receive animation related events. + * * @param listener The listener to add. */ public void addListener(AnimEventListener listener) { @@ -244,6 +250,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Removes the given listener from listening to events. + * * @param listener * @see AnimControl#addListener(com.jme3.animation.AnimEventListener) */ @@ -308,6 +315,7 @@ public final class AnimControl extends AbstractControl implements Cloneable, Jme /** * Returns the length of the given named animation. + * * @param name The name of the animation * @return The length of time, in seconds, of the named animation. */