Package org.meteoinfo.shape
Enum ShapeTypes
- java.lang.Object
-
- java.lang.Enum<ShapeTypes>
-
- org.meteoinfo.shape.ShapeTypes
-
public enum ShapeTypes extends java.lang.Enum<ShapeTypes>
Shape type enum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Get valuebooleanisLine()If is linebooleanisPoint()If is pointbooleanisPolygon()If is polygonbooleanisSameLegendType(ShapeTypes st)Check if this shape type has same legend type with other shape typestatic ShapeTypesvalueOf(int ordinal)Get value from ordinalstatic ShapeTypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ShapeTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Point
public static final ShapeTypes Point
-
Polyline
public static final ShapeTypes Polyline
-
Polygon
public static final ShapeTypes Polygon
-
PointZ
public static final ShapeTypes PointZ
-
PolylineZ
public static final ShapeTypes PolylineZ
-
PolygonZ
public static final ShapeTypes PolygonZ
-
PointM
public static final ShapeTypes PointM
-
PolylineM
public static final ShapeTypes PolylineM
-
PolygonM
public static final ShapeTypes PolygonM
-
WindArraw
public static final ShapeTypes WindArraw
-
WindBarb
public static final ShapeTypes WindBarb
-
WeatherSymbol
public static final ShapeTypes WeatherSymbol
-
StationModel
public static final ShapeTypes StationModel
-
Image
public static final ShapeTypes Image
-
Rectangle
public static final ShapeTypes Rectangle
-
CurveLine
public static final ShapeTypes CurveLine
-
CurvePolygon
public static final ShapeTypes CurvePolygon
-
Ellipse
public static final ShapeTypes Ellipse
-
Circle
public static final ShapeTypes Circle
-
Bar
public static final ShapeTypes Bar
-
PolylineError
public static final ShapeTypes PolylineError
-
ARC
public static final ShapeTypes ARC
-
TEXT
public static final ShapeTypes TEXT
-
-
Method Detail
-
values
public static ShapeTypes[] 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 (ShapeTypes c : ShapeTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShapeTypes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
Get value- Returns:
- Value
-
valueOf
public static ShapeTypes valueOf(int ordinal)
Get value from ordinal- Parameters:
ordinal- Ordinal- Returns:
- ShapeTypes value
-
isPoint
public boolean isPoint()
If is point- Returns:
- Boolean
-
isLine
public boolean isLine()
If is line- Returns:
- Boolean
-
isPolygon
public boolean isPolygon()
If is polygon- Returns:
- Boolean
-
isSameLegendType
public boolean isSameLegendType(ShapeTypes st)
Check if this shape type has same legend type with other shape type- Parameters:
st- Other shape type- Returns:
- Boolean
-
-