Package io.guise.framework.input
Enum MediaCommand
- java.lang.Object
-
- java.lang.Enum<MediaCommand>
-
- io.guise.framework.input.MediaCommand
-
- All Implemented Interfaces:
Command
,java.io.Serializable
,java.lang.Comparable<MediaCommand>
public enum MediaCommand extends java.lang.Enum<MediaCommand> implements Command
Commands for controlling media.- Author:
- Garret Wilson
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVANCE
The command for advancing in a media stream from the current location.NEXT
The command for moving to the next media resource in a series.PAUSE
The command for pausing a media stream, with the capability to continue the media stream later.PLAY
The command for starting media.PREVIOUS
The command for moving to the previous media resource in a series.RECEDE
The command for receding in a media stream from the current location.RECORD
The command for recording input to media.STOP
The command for stopping media.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getGlyph()
java.lang.String
getLabel()
java.lang.String
toString()
Returns a string representation of the command.static MediaCommand
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MediaCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADVANCE
public static final MediaCommand ADVANCE
The command for advancing in a media stream from the current location.
-
NEXT
public static final MediaCommand NEXT
The command for moving to the next media resource in a series.
-
PAUSE
public static final MediaCommand PAUSE
The command for pausing a media stream, with the capability to continue the media stream later.
-
PLAY
public static final MediaCommand PLAY
The command for starting media.
-
PREVIOUS
public static final MediaCommand PREVIOUS
The command for moving to the previous media resource in a series.
-
RECEDE
public static final MediaCommand RECEDE
The command for receding in a media stream from the current location.
-
RECORD
public static final MediaCommand RECORD
The command for recording input to media.
-
STOP
public static final MediaCommand STOP
The command for stopping media.
-
-
Method Detail
-
values
public static MediaCommand[] 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 (MediaCommand c : MediaCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaCommand valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getLabel
public java.lang.String getLabel()
- Returns:
- The resource reference for the label.
-
getGlyph
public java.net.URI getGlyph()
- Returns:
- The resource reference for the glyph.
-
toString
public java.lang.String toString()
Returns a string representation of the command. This implementation delegates togetLabel()
.- Overrides:
toString
in classjava.lang.Enum<MediaCommand>
- Returns:
- A string representation of the object.
-
-