Enum Class Enums.ColorPolicy

java.lang.Object
java.lang.Enum<Enums.ColorPolicy>
com.motivewave.platform.sdk.common.Enums.ColorPolicy
All Implemented Interfaces:
Serializable, Comparable<Enums.ColorPolicy>, Constable
Enclosing interface:
Enums

public static enum Enums.ColorPolicy extends Enum<Enums.ColorPolicy>
Determines the policy changing the color value for a series of values.
  • Enum Constant Details

    • SOLID

      public static final Enums.ColorPolicy SOLID
      Use color 1 only.
    • HIGHER_LOWER

      public static final Enums.ColorPolicy HIGHER_LOWER
      Use color 1 if the value is higher than then previous, color 2 if lower than previous.
    • GRADIENT

      public static final Enums.ColorPolicy GRADIENT
      Apply a gradient using color 1 and color 2.
    • POSITIVE_NEGATIVE

      public static final Enums.ColorPolicy POSITIVE_NEGATIVE
      Use color 1 if the value is positive (>0), color 2 if the value is negative(<0).
    • PRICE_BAR

      public static final Enums.ColorPolicy PRICE_BAR
      Use the same colors as the price bars.
  • Method Details

    • values

      public static Enums.ColorPolicy[] 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 Enums.ColorPolicy 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
    • getShortCode

      public String getShortCode()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Enums.ColorPolicy>
    • fromCode

      public static Enums.ColorPolicy fromCode(String str)