public enum PreserveAspectRatio extends Enum<PreserveAspectRatio>
preserveAspectRatio attribute.| Enum Constant and Description |
|---|
NONEValue 'none'. |
XMAX_YMAXValue 'xMaxYMax'. |
XMAX_YMIDValue 'xMaxYMid'. |
XMAX_YMINValue 'xMaxYMin'. |
XMID_YMAXValue 'xMidYMax'. |
XMID_YMIDValue 'xMidYMid'. |
XMID_YMINValue 'xMidYMin'. |
XMIN_YMAXValue 'xMinYMax'. |
XMIN_YMIDValue 'xMinYMid'. |
XMIN_YMINValue 'xMinYMin'. |
| Modifier and Type | Method and Description |
|---|---|
String | toString()Returns the SVG preserveAspectRatio attribute value as a string. |
static PreserveAspectRatio | valueOf(String name)Returns the enum constant of this type with the specified name. |
static PreserveAspectRatio[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final PreserveAspectRatio NONE
public static final PreserveAspectRatio XMAX_YMAX
public static final PreserveAspectRatio XMAX_YMID
public static final PreserveAspectRatio XMAX_YMIN
public static final PreserveAspectRatio XMID_YMAX
public static final PreserveAspectRatio XMID_YMID
public static final PreserveAspectRatio XMID_YMIN
public static final PreserveAspectRatio XMIN_YMAX
public static final PreserveAspectRatio XMIN_YMID
public static final PreserveAspectRatio XMIN_YMIN
public String toString()
toString in class Enum<PreserveAspectRatio>public static PreserveAspectRatio 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 nullpublic static PreserveAspectRatio[] values()
for (PreserveAspectRatio c : PreserveAspectRatio.values()) System.out.println(c);