Enum Class CursorDeviceFollowMode
- All Implemented Interfaces:
Serializable,Comparable<CursorDeviceFollowMode>,Constable
Mode that defines how a
CursorDevice follows a device within the CursorTrack it is created
for by default. The user can still override this on a track by track basis but this defines a default
follow mode when the user has not done this.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelects the first audio effect in the track if there is one.Selects the first device in the track if there is one.Selects the first instrument in the track if there is one.Selects the first instrument or if there is no instrument the first device.Follows the device selection made by the user in the track.Selects the last device in the track if there is one. -
Method Summary
Modifier and TypeMethodDescriptionstatic CursorDeviceFollowModeReturns the enum constant of this class with the specified name.static CursorDeviceFollowMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOLLOW_SELECTION
Follows the device selection made by the user in the track. -
FIRST_DEVICE
Selects the first device in the track if there is one. -
FIRST_INSTRUMENT
Selects the first instrument in the track if there is one. -
FIRST_AUDIO_EFFECT
Selects the first audio effect in the track if there is one. -
FIRST_INSTRUMENT_OR_DEVICE
Selects the first instrument or if there is no instrument the first device.- Since:
- API version 3
-
LAST_DEVICE
Selects the last device in the track if there is one.- Since:
- API version 7
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-