Enum LightModel
- java.lang.Object
-
- java.lang.Enum<LightModel>
-
- org.jzy3d.plot3d.rendering.lights.LightModel
-
- All Implemented Interfaces:
Serializable
,Comparable<LightModel>
public enum LightModel extends Enum<LightModel>
A simple enum to define light models, as documented in theLight
javadoc.- Author:
- Martin Pernollet
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LIGHT_MODEL_AMBIENT
LIGHT_MODEL_LOCAL_VIEWER
LIGHT_MODEL_TWO_SIDE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LightModel
valueOf(String name)
Returns the enum constant of this type with the specified name.static LightModel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIGHT_MODEL_AMBIENT
public static final LightModel LIGHT_MODEL_AMBIENT
-
LIGHT_MODEL_TWO_SIDE
public static final LightModel LIGHT_MODEL_TWO_SIDE
-
LIGHT_MODEL_LOCAL_VIEWER
public static final LightModel LIGHT_MODEL_LOCAL_VIEWER
-
-
Method Detail
-
values
public static LightModel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LightModel c : LightModel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LightModel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-