Enum Type

    • Enum Constant Detail

      • DEFAULT

        public static final Type DEFAULT
        displaying absolute values (default).
      • PERCENTAGE

        public static final Type PERCENTAGE
        displaying percentage values.
      • LOG

        public static final Type LOG
        displaying ln values.
      • DATE

        public static final Type DATE
        displaying dates.
      • TIME

        public static final Type TIME
        displaying times.
      • DATETIME

        public static final Type DATETIME
        displaying date/times.
      • DATETIMEMSEC

        public static final Type DATETIMEMSEC
        displaying date/times.
    • Method Detail

      • values

        public static Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Type c : Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Type 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getModel

        public AbstractAxisModel getModel()
        Returns the corresponding axis model.
        Returns:
        the model
      • canHandle

        public boolean canHandle​(double min,
                                 double max)
        Checks whether the data range can be handled by the model.
        Parameters:
        min - the minimum value
        max - the maximum value
        Returns:
        true if the data can be handled
      • toString

        public String toString()
        Returns the display string.
        Overrides:
        toString in class Enum<Type>
        Returns:
        the display string
      • parse

        public Type parse​(String s)
        Returns the corresponding type. First tries to parse using the valueOf method of the Enum class, then going over all the enums and checking the display string.
        Specified by:
        parse in interface EnumWithCustomParsing<Type>
        Parameters:
        s - the string to parse
        Returns:
        the corresponding type or null if not found
      • toString

        public static String toString​(AbstractOption option,
                                      Object object)
        Returns the enum as string.
        Parameters:
        option - the current option
        object - the enum object to convert
        Returns:
        the generated string
      • valueOf

        public static Type valueOf​(AbstractOption option,
                                   String str)
        Returns an enum generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to an enum
        Returns:
        the generated enum or null in case of error