org.opengis.util
Class SimpleEnumerationType<E extends SimpleEnumerationType<E>>
- java.lang.Object
-
- org.opengis.util.CodeList<E>
-
- org.opengis.util.SimpleEnumerationType<E>
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<E>
- Direct Known Subclasses:
- ArrowStyle, FillPattern, FillStyle, GraphicArc.ArcClosure, LineCap, LineJoin, LinePattern, LineStyle, Mark, PathType, XAnchor, YAnchor
public abstract class SimpleEnumerationType<E extends SimpleEnumerationType<E>> extends CodeList<E>
Class that implements simple, type safe enumerations in Java. Two enumeration values are equal ife1 == e2or ife1.getValue() == e2.getValue().- Since:
- GeoAPI 1.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetDescription()Gets the description for this enumeration value.javax.swing.IcongetIcon()Gets the icon for this enumeration value.static javax.swing.IcongetNullIcon()Gets the null icon.java.lang.StringtoString()Gets the string representation of this object.
-
-
-
Method Detail
-
getNullIcon
public static javax.swing.Icon getNullIcon()
Gets the null icon.- Returns:
- a singleton icon that can be used when no icon was
found in
loadIconResource. The null icon is a fixed size, 16x64, and its paint method simply returns.
-
toString
public java.lang.String toString()
Gets the string representation of this object. This just callsCodeList.name().- Overrides:
toStringin classCodeList<E extends SimpleEnumerationType<E>>- Returns:
- the string representation.
-
getDescription
public java.lang.String getDescription()
Gets the description for this enumeration value.- Returns:
- the description.
-
getIcon
public javax.swing.Icon getIcon()
Gets the icon for this enumeration value.- Returns:
- the icon.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG