Enum Class ContourMode

java.lang.Object
java.lang.Enum<ContourMode>
com.xinapse.multisliceimage.roi.ContourMode
All Implemented Interfaces:
Serializable, Comparable<ContourMode>, Constable

public enum ContourMode extends Enum<ContourMode>
An enumeration of the modes of operation of intensity level contour generation.
  • Enum Constant Details

    • EDGE_SEEKING

      public static final ContourMode EDGE_SEEKING
      Edge seeking to get the intensity level.
    • UNDER_MOUSE

      public static final ContourMode UNDER_MOUSE
      The intensity level under the mouse.
    • FIXED

      public static final ContourMode FIXED
      A fixed user-set intensity level.
    • MOUSE_PLUS_DELTA

      public static final ContourMode MOUSE_PLUS_DELTA
      The intensity level under the mouse plus delta.
    • MOUSE_MINUS_DELTA

      public static final ContourMode MOUSE_MINUS_DELTA
      The intensity level under the mouse minus delta.
  • Method Details

    • values

      public static ContourMode[] 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 ContourMode 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
    • getPreferredContourMode

      public static ContourMode getPreferredContourMode()
      Returns the user's preferred ContourMode. Set from the user's preferences.
      Returns:
      the user's preferred ContourMode.
    • savePreferredContourMode

      public static void savePreferredContourMode(ContourMode mode)
      Saves the user's preferred ContourMode to the user preferences.
      Parameters:
      mode - the user's new preferred ContourMode.
    • toString

      public String toString()
      Returns a string describing this ContourMode.
      Overrides:
      toString in class Enum<ContourMode>
      Returns:
      a string describing this ContourMode.