Serializable, Comparable<ShapeTypes>public enum ShapeTypes extends Enum<ShapeTypes>
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Get value
|
boolean |
isLine() |
If is line
|
boolean |
isPoint() |
If is point
|
boolean |
isPolygon() |
If is polygon
|
boolean |
isSameLegendType(ShapeTypes st) |
Check if this shape type has same legend type with other shape type
|
static ShapeTypes |
valueOf(int ordinal) |
Get value from ordinal
|
static ShapeTypes |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
|
static ShapeTypes[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ShapeTypes Point
public static final ShapeTypes Polyline
public static final ShapeTypes Polygon
public static final ShapeTypes PointZ
public static final ShapeTypes PolylineZ
public static final ShapeTypes PolygonZ
public static final ShapeTypes PointM
public static final ShapeTypes PolylineM
public static final ShapeTypes PolygonM
public static final ShapeTypes WindArraw
public static final ShapeTypes WindBarb
public static final ShapeTypes WeatherSymbol
public static final ShapeTypes StationModel
public static final ShapeTypes Image
public static final ShapeTypes Rectangle
public static final ShapeTypes CurveLine
public static final ShapeTypes CurvePolygon
public static final ShapeTypes Ellipse
public static final ShapeTypes Circle
public static final ShapeTypes Bar
public static final ShapeTypes PolylineError
public static final ShapeTypes ARC
public static final ShapeTypes TEXT
public static ShapeTypes[] values()
for (ShapeTypes c : ShapeTypes.values()) System.out.println(c);
public static ShapeTypes valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
public static ShapeTypes valueOf(int ordinal)
ordinal - Ordinalpublic boolean isPoint()
public boolean isLine()
public boolean isPolygon()
public boolean isSameLegendType(ShapeTypes st)
st - Other shape typeCopyright © 2019. All rights reserved.