Enum Class TransformStyle

java.lang.Object
java.lang.Enum<TransformStyle>
com.oorian.css.TransformStyle
All Implemented Interfaces:
Serializable, Comparable<TransformStyle>, Constable

public enum TransformStyle extends Enum<TransformStyle>
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:
  • Enum Constant Details

    • INHERIT

      public static final TransformStyle INHERIT
      Inherits from parent element.
    • INITIAL

      public static final TransformStyle INITIAL
      Sets to default value.
    • FLAT

      public static final TransformStyle FLAT
      Children are flattened into element's plane (default).
    • PRESERVE_3D

      public static final TransformStyle PRESERVE_3D
      Children maintain their own 3D position.
  • Method Details

    • values

      public static TransformStyle[] 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

      public static TransformStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the CSS value string.
      Returns:
      the CSS value
    • toString

      public String toString()
      Returns the CSS value string.
      Overrides:
      toString in class Enum<TransformStyle>
      Returns:
      the CSS value