Package noaa.coastwatch.gui
Enum Class LightTable.Mode
- All Implemented Interfaces:
Serializable
,Comparable<LightTable.Mode>
,java.lang.constant.Constable
- Enclosing class:
- LightTable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe box drawing mode.The zoom box drawing mode.The circle drawing mode.The general path drawing mode.The image drawing mode.The image rotation mode.The image translation mode.The line drawing mode.The non-drawing mode.The point drawing mode.The polyline drawing mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic LightTable.Mode
Returns the enum constant of this class with the specified name.static LightTable.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The non-drawing mode. -
POINT
The point drawing mode. In this mode, a point is drawn by clicking once. -
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
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
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
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
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
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
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
The image translation mode. In this mode, the component must be aTransformableImageComponent
and the component is used to create the graphics for rubber-banding by calling itssetImageAffine()
method. The image translates continuously with the dragging mouse. -
IMAGE_ROTATE
The image rotation mode. In this mode, the component must be aTransformableImageComponent
and the component is used to create the graphics for rubber-banding by calling itssetImageAffine()
method. The image rotates continuously with the dragging mouse.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-