Enum GradientColorStop.OffsetType

All Implemented Interfaces:
Serializable, Comparable<GradientColorStop.OffsetType>, java.lang.constant.Constable
Enclosing class:

public static enum GradientColorStop.OffsetType extends Enum<GradientColorStop.OffsetType>
Represents the possible offset type
  • Enum Constant Details


      public static final GradientColorStop.OffsetType ABSOLUTE
      The absolute offset value from the target coordinates vector's start
    • AUTO

      public static final GradientColorStop.OffsetType AUTO
      The automatic offset evaluation. The offset value should be evaluated automatically based on the whole stop colors list specified for the gradient. The general auto offset logic should be the next: - find the previous and the next specified offset or hint offset values - the sublist of sequent auto offsets should spread evenly between the found values

      public static final GradientColorStop.OffsetType RELATIVE
      The relative offset value to the target coordinates vector. The 0 value means the target vector start, the 1 value means the target vector end.
  • Method Details

    • values

      public static GradientColorStop.OffsetType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GradientColorStop.OffsetType valueOf (String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null