Package de.xima.fc.css.builder
Enum ECssTranformOrigin
- java.lang.Object
-
- java.lang.Enum<ECssTranformOrigin>
-
- de.xima.fc.css.builder.ECssTranformOrigin
-
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssTranformOrigin>
public enum ECssTranformOrigin extends Enum<ECssTranformOrigin> implements CssDefaultValue
Constants with the pre-defined values for the CSS propertytransform-origin
.The transform-origin CSS property sets the origin for an element's transformations.
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
String
value()
static ECssTranformOrigin
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECssTranformOrigin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTTOM
public static final ECssTranformOrigin BOTTOM
100% along the vertical axis.
-
CENTER
public static final ECssTranformOrigin CENTER
50% along the horizontal or vertical axis.
-
LEFT
public static final ECssTranformOrigin LEFT
0% along the horizontal axis.
-
RIGHT
public static final ECssTranformOrigin RIGHT
100% along the horizontal axis.
-
TOP
public static final ECssTranformOrigin TOP
0% along the vertical axis.
-
-
Method Detail
-
values
public static ECssTranformOrigin[] 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 (ECssTranformOrigin c : ECssTranformOrigin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECssTranformOrigin 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<ECssTranformOrigin>
-
value
public String value()
- Returns:
- The string value of this property that can be used when creating CSS strings.
-
-