public enum HorizontalOrigin extends Enum<HorizontalOrigin>
Modifier and Type | Method and Description |
---|---|
double |
toNumber() |
double |
toNumber(String asString) |
static HorizontalOrigin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalOrigin CENTER
public static final HorizontalOrigin LEFT
public static final HorizontalOrigin RIGHT
public static HorizontalOrigin[] values()
for (HorizontalOrigin c : HorizontalOrigin.values()) System.out.println(c);
public static HorizontalOrigin 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 double toNumber()
public double toNumber(String asString)
Copyright © 2014. All rights reserved.