com.jme3.light
列挙型 Light.Type

java.lang.Object
  上位を拡張 java.lang.Enum<Light.Type>
      上位を拡張 com.jme3.light.Light.Type
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<Light.Type>
含まれているクラス:
Light

public static enum Light.Type
extends java.lang.Enum<Light.Type>

Describes the light type.


列挙型定数の概要
Ambient
          Ambient light
Directional
          Directional light
Point
          Point light
Spot
          Spot light.
 
メソッドの概要
 int getId()
          Returns an index for the light type
static Light.Type valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static Light.Type[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Directional

public static final Light.Type Directional
Directional light

関連項目:
DirectionalLight

Point

public static final Light.Type Point
Point light

関連項目:
PointLight

Spot

public static final Light.Type Spot
Spot light.

Not supported by jMonkeyEngine


Ambient

public static final Light.Type Ambient
Ambient light

関連項目:
AmbientLight
メソッドの詳細

values

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

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

valueOf

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

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

getId

public int getId()
Returns an index for the light type

戻り値:
an index for the light type