Enum Markers.Shape
- java.lang.Object
-
- java.lang.Enum<Markers.Shape>
-
- adams.gui.visualization.segmentation.layer.Markers.Shape
-
- All Implemented Interfaces:
Serializable
,Comparable<Markers.Shape>
- Enclosing class:
- Markers
public static enum Markers.Shape extends Enum<Markers.Shape>
Enum for the marker shape to plot around the marker points.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
plot(Graphics2D g, int posX, int posY, int extent)
Plots the marker at the specified position.static Markers.Shape
valueOf(String name)
Returns the enum constant of this type with the specified name.static Markers.Shape[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Markers.Shape NONE
nothing.
-
BOX
public static final Markers.Shape BOX
a square box.
-
CIRCLE
public static final Markers.Shape CIRCLE
a circle.
-
TRIANGLE
public static final Markers.Shape TRIANGLE
a triangle.
-
-
Method Detail
-
values
public static Markers.Shape[] 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 (Markers.Shape c : Markers.Shape.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Markers.Shape valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
plot
public void plot(Graphics2D g, int posX, int posY, int extent)
Plots the marker at the specified position.- Parameters:
g
- the graphics contextposX
- the x positionposY
- the y positionextent
- the size of the marker
-
-