枚举 ShapeTypes
- java.lang.Object
-
- java.lang.Enum<ShapeTypes>
-
- org.meteoinfo.geometry.shape.ShapeTypes
-
- 所有已实现的接口:
Serializable,Comparable<ShapeTypes>
public enum ShapeTypes extends Enum<ShapeTypes>
Shape type enum- 作者:
- Yaqiang Wang
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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 typebooleanisZ()Get if the shape has z coordinatestatic ShapeTypesvalueOf(int ordinal)Get value from ordinalstatic ShapeTypesvalueOf(String name)返回带有指定名称的该类型的枚举常量。static ShapeTypesvalueOfBack(String name)Get value from name - for backward compatiblestatic ShapeTypes[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
POINT
public static final ShapeTypes POINT
-
POLYLINE
public static final ShapeTypes POLYLINE
-
POLYGON
public static final ShapeTypes POLYGON
-
POINT_Z
public static final ShapeTypes POINT_Z
-
POLYLINE_Z
public static final ShapeTypes POLYLINE_Z
-
POLYGON_Z
public static final ShapeTypes POLYGON_Z
-
POINT_M
public static final ShapeTypes POINT_M
-
POLYLINE_M
public static final ShapeTypes POLYLINE_M
-
POLYGON_M
public static final ShapeTypes POLYGON_M
-
WIND_ARROW
public static final ShapeTypes WIND_ARROW
-
WIND_BARB
public static final ShapeTypes WIND_BARB
-
WEATHER_SYMBOL
public static final ShapeTypes WEATHER_SYMBOL
-
STATION_MODEL
public static final ShapeTypes STATION_MODEL
-
IMAGE
public static final ShapeTypes IMAGE
-
RECTANGLE
public static final ShapeTypes RECTANGLE
-
CURVE_LINE
public static final ShapeTypes CURVE_LINE
-
CURVE_POLYGON
public static final ShapeTypes CURVE_POLYGON
-
ELLIPSE
public static final ShapeTypes ELLIPSE
-
CIRCLE
public static final ShapeTypes CIRCLE
-
BAR
public static final ShapeTypes BAR
-
POLYLINE_ERROR
public static final ShapeTypes POLYLINE_ERROR
-
ARC
public static final ShapeTypes ARC
-
TEXT
public static final ShapeTypes TEXT
-
TEXTURE
public static final ShapeTypes TEXTURE
-
CUBIC
public static final ShapeTypes CUBIC
-
CYLINDER
public static final ShapeTypes CYLINDER
-
CONE
public static final ShapeTypes CONE
-
SPHERE
public static final ShapeTypes SPHERE
-
-
方法详细资料
-
values
public static ShapeTypes[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (ShapeTypes c : ShapeTypes.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static ShapeTypes valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getValue
public int getValue()
Get value- 返回:
- Value
-
valueOf
public static ShapeTypes valueOf(int ordinal)
Get value from ordinal- 参数:
ordinal- Ordinal- 返回:
- ShapeTypes value
-
valueOfBack
public static ShapeTypes valueOfBack(String name)
Get value from name - for backward compatible- 参数:
name- Shape type name- 返回:
- Shape type
-
isPoint
public boolean isPoint()
If is point- 返回:
- Boolean
-
isLine
public boolean isLine()
If is line- 返回:
- Boolean
-
isPolygon
public boolean isPolygon()
If is polygon- 返回:
- Boolean
-
isSameLegendType
public boolean isSameLegendType(ShapeTypes st)
Check if this shape type has same legend type with other shape type- 参数:
st- Other shape type- 返回:
- Boolean
-
isZ
public boolean isZ()
Get if the shape has z coordinate- 返回:
- Boolean
-
-