Package com.oorian.css
Enum Class TransformStyle
- All Implemented Interfaces:
Serializable,Comparable<TransformStyle>,Constable
CSS transform-style property values for 3D transform rendering.
The transform-style property specifies how child elements are rendered in 3D space. It determines whether children are flattened into the element's plane or preserve their 3D position.
Style Values:
- flat: Children are flattened into element's plane (default)
- preserve-3d: Children maintain their 3D positioning
Usage:
container.setTransformStyle(TransformStyle.PRESERVE_3D);
element.setTransformStyle(TransformStyle.FLAT);
- 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 ConstantsEnum ConstantDescriptionChildren are flattened into element's plane (default).Inherits from parent element.Sets to default value.Children maintain their own 3D position. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static TransformStyleReturns the enum constant of this class with the specified name.static TransformStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INHERIT
Inherits from parent element. -
INITIAL
Sets to default value. -
FLAT
Children are flattened into element's plane (default). -
PRESERVE_3D
Children maintain their own 3D 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.- Overrides:
toStringin classEnum<TransformStyle>- Returns:
- the CSS value
-