public enum ViewportMode extends Enum<ViewportMode>
Enum Constant and Description |
---|
RECTANGLE_NO_STRETCH |
SQUARE |
STRETCH_TO_FILL |
Modifier and Type | Method and Description |
---|---|
static ViewportMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ViewportMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ViewportMode STRETCH_TO_FILL
public static final ViewportMode SQUARE
public static final ViewportMode RECTANGLE_NO_STRETCH
public static ViewportMode[] values()
for (ViewportMode c : ViewportMode.values()) System.out.println(c);
public static ViewportMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.