Package org.videolan.libvlc
Enum MediaPlayer.ScaleType
- java.lang.Object
-
- java.lang.Enum<MediaPlayer.ScaleType>
-
- org.videolan.libvlc.MediaPlayer.ScaleType
-
- All Implemented Interfaces:
Serializable,Comparable<MediaPlayer.ScaleType>
- Enclosing class:
- MediaPlayer
public static enum MediaPlayer.ScaleType extends Enum<MediaPlayer.ScaleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SURFACE_16_9SURFACE_4_3SURFACE_BEST_FITSURFACE_FILLSURFACE_FIT_SCREENSURFACE_ORIGINAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediaPlayer.ScaleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MediaPlayer.ScaleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SURFACE_BEST_FIT
public static final MediaPlayer.ScaleType SURFACE_BEST_FIT
-
SURFACE_FIT_SCREEN
public static final MediaPlayer.ScaleType SURFACE_FIT_SCREEN
-
SURFACE_FILL
public static final MediaPlayer.ScaleType SURFACE_FILL
-
SURFACE_16_9
public static final MediaPlayer.ScaleType SURFACE_16_9
-
SURFACE_4_3
public static final MediaPlayer.ScaleType SURFACE_4_3
-
SURFACE_ORIGINAL
public static final MediaPlayer.ScaleType SURFACE_ORIGINAL
-
-
Method Detail
-
values
public static MediaPlayer.ScaleType[] 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 (MediaPlayer.ScaleType c : MediaPlayer.ScaleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaPlayer.ScaleType 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
-
-