Package com.oorian.css
Enum Class Origin
- All Implemented Interfaces:
Serializable,Comparable<Origin>,Constable
CSS origin position values for transform and background positioning.
The Origin enum provides keyword values for specifying position origins used in transform-origin, background-position, and other CSS properties that require positional values.
Position Values:
- left: Left edge position
- center: Center position (horizontal or vertical)
- right: Right edge position
- top: Top edge position
- bottom: Bottom edge position
Usage:
element.setTransformOrigin(Origin.CENTER, Origin.CENTER);
image.setBackgroundPosition(Origin.LEFT, Origin.TOP);
- Since:
- 2012
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static OriginReturns the enum constant of this class with the specified name.static Origin[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element. -
LEFT
Left edge position. -
CENTER
Center position. -
RIGHT
Right edge position. -
TOP
Top edge position. -
BOTTOM
Bottom edge position.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.
-