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_10
SURFACE_16_9
SURFACE_221_1
SURFACE_235_1
SURFACE_239_1
SURFACE_4_3
SURFACE_5_4
SURFACE_BEST_FIT
SURFACE_FILL
SURFACE_FIT_SCREEN
SURFACE_ORIGINAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaPlayer.ScaleType[]
getMainScaleTypes()
Float
getRatio()
static MediaPlayer.ScaleType
valueOf(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_16_10
public static final MediaPlayer.ScaleType SURFACE_16_10
-
SURFACE_221_1
public static final MediaPlayer.ScaleType SURFACE_221_1
-
SURFACE_235_1
public static final MediaPlayer.ScaleType SURFACE_235_1
-
SURFACE_239_1
public static final MediaPlayer.ScaleType SURFACE_239_1
-
SURFACE_5_4
public static final MediaPlayer.ScaleType SURFACE_5_4
-
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
-
getRatio
public Float getRatio()
-
getMainScaleTypes
public static MediaPlayer.ScaleType[] getMainScaleTypes()
-
-