public enum DrawingMode extends java.lang.Enum<DrawingMode>
Enum Constant and Description |
---|
BLOB_HOVER
On the image obtained by detecting blobs, display measurements of the
nearest blob as the mouse moves.
|
BLOB_PAIR
Similar to POINT_PAIR except that each point is always on the nearest
blob to the mouse cursor when it is moved or clicked.
|
CALIBRATE
Interaction is the same as for POINT_PAIR but calibration will be set
when the mouse is released.
|
CLOSED_CURVE
Similar to open curve but when the mouse is released a closed curve is
created by appending the starting point
to the list of points; this is a measuring mode.
|
CROP
Similar to RECTANGLE but when the mouse is released the image is cropped
to the rectangle instead of being measured.
|
CROP_POWER2
Similar to MOVE but when the mouse is released the image is cropped to the
moved rectangle instead of being measured.
|
DELETE_MATCHES
Same interaction as RECTANGLE but on releasing the mouse a search of
match lists is done to find any which intersect the rectangle.
|
ENCLOSE_SPECTRUM
Same interaction as RECTANGLE but on releasing the mouse the image is
analysed for a star spectrum
|
HOVER
Measurements are shown over the image while the mouse is moved across it.
|
KERNEL
Same interaction as POINT (single point) but when the mouse is released
the centre of a convolution is set rather than the point being measured.
|
MASK
Not for user interaction but to tell GlassPane to use the mask of
thresholded pixels.
|
MOVE
For moving the last measurement shape.
|
OPEN_CURVE
Drag the mouse around to create a list of points, ending when the mouse
is released; this is a measuring mode.
|
POINT
Single mouse click creates one point; while the mouse is held down a
cross is shown, which can be dragged to the required position; this is
a measuring mode.
|
POINT_PAIR
First mouse click creates one point; then drag an elastic line around;
releasing the mouse creates the second point; this is a measuring mode.
|
PROFILE2D
Interaction the same as for RECTANGLE but a 2D profile is drawn on release.
|
RECTANGLE
Interaction is similar to POINT_PAIR but an elastic rectangle is drawn
which has the two points as opposite corners; this is a measuring mode.
|
STAR_CHART
Another mouse hovering mode, this time for when the image is a star chart.
|
STAR_PAIR
Similar to BLOB_PAIR but for use with a StarChart, where we have a list
of net.grelf.Star objects rather than Blobs.
|
SWIRL_EFFECT
Point for experimental swirl effect.
|
UNDEFINED
No user interaction is expected or possible in this mode.
|
WHOLE
Says that the whole image is to be measured, without waiting for any
interaction; this is a measuring mode.
|
ZOOM_EFFECT
Point for experimental zoom effect.
|
ZOOM_LYAPUNOV
Point for zooming into Lyapunov curve.
|
ZOOM_MANDELBROT
Point for zooming into Mandelbrot curve.
|
Modifier and Type | Method and Description |
---|---|
static DrawingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DrawingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DrawingMode BLOB_HOVER
public static final DrawingMode BLOB_PAIR
public static final DrawingMode CALIBRATE
public static final DrawingMode CLOSED_CURVE
public static final DrawingMode CROP
public static final DrawingMode CROP_POWER2
public static final DrawingMode DELETE_MATCHES
public static final DrawingMode ENCLOSE_SPECTRUM
public static final DrawingMode HOVER
public static final DrawingMode KERNEL
public static final DrawingMode MASK
public static final DrawingMode MOVE
public static final DrawingMode OPEN_CURVE
public static final DrawingMode POINT
public static final DrawingMode POINT_PAIR
public static final DrawingMode PROFILE2D
public static final DrawingMode RECTANGLE
public static final DrawingMode STAR_CHART
public static final DrawingMode STAR_PAIR
public static final DrawingMode UNDEFINED
public static final DrawingMode WHOLE
public static final DrawingMode ZOOM_MANDELBROT
public static final DrawingMode ZOOM_LYAPUNOV
public static final DrawingMode ZOOM_EFFECT
public static final DrawingMode SWIRL_EFFECT
public static DrawingMode[] values()
for (DrawingMode c : DrawingMode.values()) System.out.println(c);
public static DrawingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null