Enum Class LightTable.Mode

java.lang.Object
java.lang.Enum<LightTable.Mode>
noaa.coastwatch.gui.LightTable.Mode
All Implemented Interfaces:
Serializable, Comparable<LightTable.Mode>, java.lang.constant.Constable
Enclosing class:
LightTable

public static enum LightTable.Mode extends Enum<LightTable.Mode>
  • Enum Constant Details

    • NONE

      public static final LightTable.Mode NONE
      The non-drawing mode.
    • POINT

      public static final LightTable.Mode POINT
      The point drawing mode. In this mode, a point is drawn by clicking once.
    • LINE

      public static final LightTable.Mode LINE
      The line drawing mode. In this mode, a line is drawn by pressing at one end of the line, dragging to the other end of the line, and releasing.
    • POLYLINE

      public static final LightTable.Mode POLYLINE
      The polyline drawing mode. In this mode, a multiple segment polyline is drawn by clicking at each segment start and end point. The polyline is finished by double-clicking or right clicking on the final point.
    • BOX

      public static final LightTable.Mode BOX
      The box drawing mode. In this mode, a box is created by pressing at one corner, dragging to the diagonally opposite corner, and releasing.
    • BOX_ZOOM

      public static final LightTable.Mode BOX_ZOOM
      The zoom box drawing mode. In this mode, a box is created by pressing at one corner, dragging to the diagonally opposite corner, and releasing. The display indicates a "zoom" operation by dimming the area outside of the zoom box.
    • CIRCLE

      public static final LightTable.Mode CIRCLE
      The circle drawing mode. In this mode, a circle is drawn by pressing at the circle center, dragging to a radius point, and releasing.
    • GENERAL_PATH

      public static final LightTable.Mode GENERAL_PATH
      The general path drawing mode. In this mode, a general path is used to create the graphics for rubber-banding. The general path is drawn when the mouse button is pressed, redrawn while the mouse is dragged, then erased when the mouse button is released.
    • IMAGE

      public static final LightTable.Mode IMAGE
      The image drawing mode. In this mode, the component background itself is used to create the graphics for rubber-banding. The image moves continuously with the dragging mouse.
    • IMAGE_TRANSLATE

      public static final LightTable.Mode IMAGE_TRANSLATE
      The image translation mode. In this mode, the component must be a TransformableImageComponent and the component is used to create the graphics for rubber-banding by calling its setImageAffine() method. The image translates continuously with the dragging mouse.
    • IMAGE_ROTATE

      public static final LightTable.Mode IMAGE_ROTATE
      The image rotation mode. In this mode, the component must be a TransformableImageComponent and the component is used to create the graphics for rubber-banding by calling its setImageAffine() method. The image rotates continuously with the dragging mouse.
  • Method Details

    • values

      public static LightTable.Mode[] 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 LightTable.Mode 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