Enum Class TickTextRotate

java.lang.Object
java.lang.Enum<TickTextRotate>
com.jbstrap.ui.components.charts.params.enums.TickTextRotate
All Implemented Interfaces:
Serializable, Comparable<TickTextRotate>, Constable

public enum TickTextRotate extends Enum<TickTextRotate>
Sets the rotation of the text on the chart’s axis.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • ROTATE_0

      public static final TickTextRotate ROTATE_0
      The text is displayed horizontally and is not rotated.
    • ROTATE_45

      public static final TickTextRotate ROTATE_45
      The text is rotated in a 45° angle.
    • ROTATE_90

      public static final TickTextRotate ROTATE_90
      The text is rotated in a 90° angle (displayed vertically).
    • AUTO

      public static final TickTextRotate AUTO
      Based on the length and amount of the text, it is automatically rotated.
  • Method Details

    • values

      public static TickTextRotate[] 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 TickTextRotate 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TickTextRotate>
    • fromName

      public static TickTextRotate fromName(String name)
      Determines the rotation type of the text by its name.
      Parameters:
      name - Text rotation name
      Returns:
      Rotation type for the specified name or null if there is no rotation type for the specified name