Package org.esa.snap.rcp.statistics
Enum PlotAreaSelectionTool.AreaType
- java.lang.Object
-
- java.lang.Enum<PlotAreaSelectionTool.AreaType>
-
- org.esa.snap.rcp.statistics.PlotAreaSelectionTool.AreaType
-
- All Implemented Interfaces:
Serializable
,Comparable<PlotAreaSelectionTool.AreaType>
- Enclosing class:
- PlotAreaSelectionTool
public static enum PlotAreaSelectionTool.AreaType extends Enum<PlotAreaSelectionTool.AreaType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELLIPSE
Shape is an instance ofEllipse2D
.RECTANGLE
Shape is an instance ofRectangle2D
.X_RANGE
Shape is an instance ofRectangle2D
, only X-coordinates are valid.Y_RANGE
Shape is an instance ofRectangle2D
, only Y-coordinates are valid.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlotAreaSelectionTool.AreaType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PlotAreaSelectionTool.AreaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X_RANGE
public static final PlotAreaSelectionTool.AreaType X_RANGE
Shape is an instance ofRectangle2D
, only X-coordinates are valid.
-
Y_RANGE
public static final PlotAreaSelectionTool.AreaType Y_RANGE
Shape is an instance ofRectangle2D
, only Y-coordinates are valid.
-
RECTANGLE
public static final PlotAreaSelectionTool.AreaType RECTANGLE
Shape is an instance ofRectangle2D
.
-
ELLIPSE
public static final PlotAreaSelectionTool.AreaType ELLIPSE
Shape is an instance ofEllipse2D
.
-
-
Method Detail
-
values
public static PlotAreaSelectionTool.AreaType[] 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 (PlotAreaSelectionTool.AreaType c : PlotAreaSelectionTool.AreaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlotAreaSelectionTool.AreaType 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
-
-