Enum CustomFlag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CustomFlag>

    public enum CustomFlag
    extends java.lang.Enum<CustomFlag>
    Enumeration that indicates an aspect of the look.

    These flags are used to keep track of which aspects of the look that are overridden from the values provided by the chart palette, using one of the methods in this class.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Brush
      A custom brush is set.
      LabelColor
      A custom label color is set.
      MarkerBrush
      A custom marker brush is set.
      MarkerPen
      A custom marker pen is set.
      Pen
      A custom pen is set.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getValue()
      Returns the numerical representation of this enum.
      static CustomFlag valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CustomFlag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Pen

        public static final CustomFlag Pen
        A custom pen is set.
      • Brush

        public static final CustomFlag Brush
        A custom brush is set.
      • MarkerPen

        public static final CustomFlag MarkerPen
        A custom marker pen is set.
      • MarkerBrush

        public static final CustomFlag MarkerBrush
        A custom marker brush is set.
      • LabelColor

        public static final CustomFlag LabelColor
        A custom label color is set.
    • Method Detail

      • values

        public static CustomFlag[] 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 (CustomFlag c : CustomFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CustomFlag valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
        Returns the numerical representation of this enum.