Package com.ijurnove.cpu3d
Class SceneInitFlags
java.lang.Object
com.ijurnove.cpu3d.SceneInitFlags
SceneInitFlags is used in a Scene to set certain values at initialization. Values cannot be modified after a Scene has been initialized.
Values are stored in an EnumMap with key SceneInitFlag and value Double.
Refer to enum SceneInitFlag to see what each flag controls.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSceneInitFlagswith the default values for each flag. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetFlag(SceneInitFlag flag) Returns the value corresponding to a givenSceneInitFlag.protected voidlock()voidsetFlag(SceneInitFlag flag, double value) Sets the value of a specifiedSceneInitFlagto a given double.
-
Constructor Details
-
SceneInitFlags
public SceneInitFlags()Constructs a newSceneInitFlagswith the default values for each flag.
-
-
Method Details
-
lock
protected void lock() -
setFlag
Sets the value of a specifiedSceneInitFlagto a given double.- Parameters:
flag- the specified SceneInitFlagvalue- the value to set
-
getFlag
Returns the value corresponding to a givenSceneInitFlag.- Parameters:
flag- the given SceneInitFlag- Returns:
- the value corresponding to the given SceneInitFlag
-