Enum MaterialProperty
- java.lang.Object
-
- java.lang.Enum<MaterialProperty>
-
- org.jzy3d.plot3d.rendering.lights.MaterialProperty
-
- All Implemented Interfaces:
Serializable
,Comparable<MaterialProperty>
public enum MaterialProperty extends Enum<MaterialProperty>
A simple enum to define material property names, as documented in theLight
javadoc.- Author:
- Martin Pernollet
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MaterialProperty
valueOf(String name)
Returns the enum constant of this type with the specified name.static MaterialProperty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AMBIENT
public static final MaterialProperty AMBIENT
-
DIFFUSE
public static final MaterialProperty DIFFUSE
-
SPECULAR
public static final MaterialProperty SPECULAR
-
SHININESS
public static final MaterialProperty SHININESS
-
-
Method Detail
-
values
public static MaterialProperty[] 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 (MaterialProperty c : MaterialProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaterialProperty 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
-
-