com.jme3.animation
列挙型 LoopMode

java.lang.Object
  上位を拡張 java.lang.Enum<LoopMode>
      上位を拡張 com.jme3.animation.LoopMode
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<LoopMode>

public enum LoopMode
extends java.lang.Enum<LoopMode>

LoopMode determines how animations repeat, or if they do not repeat.


列挙型定数の概要
Cycle
          The animation will cycle back and forth.
DontLoop
          The animation will not loop.
Loop
          The animation will play repeatedly, when it reaches the end the animation will play again from the beginning, and so on.
 
メソッドの概要
static LoopMode valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static LoopMode[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Loop

public static final LoopMode Loop
The animation will play repeatedly, when it reaches the end the animation will play again from the beginning, and so on.


DontLoop

public static final LoopMode DontLoop
The animation will not loop. It will play until the last frame, and then freeze at that frame. It is possible to decide to play a new animation when that happens by using a AnimEventListener.


Cycle

public static final LoopMode Cycle
The animation will cycle back and forth. When reaching the end, the animation will play backwards from the last frame until it reaches the first frame.

メソッドの詳細

values

public static LoopMode[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (LoopMode c : LoopMode.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static LoopMode valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合