CodeList
.
Furthermore, according ISO 19103, enumeration and code list are not the same thing. This base
class is closer to a code list than an enumeration.@Deprecated public abstract class SimpleEnumerationType<E extends SimpleEnumerationType<E>> extends CodeList<E>
e1 == e2
or if e1.getValue() == e2.getValue()
.Modifier | Constructor and Description |
---|---|
protected |
SimpleEnumerationType(Collection<E> values,
String name,
String description)
Deprecated.
Add a new
SimpleEnumerationType to the given list using the given name and
description . |
protected |
SimpleEnumerationType(Collection<E> values,
String name,
String description,
Icon icon)
Deprecated.
Add a new
SimpleEnumerationType to the given list using the given name and
description . |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Deprecated.
Gets the description for this enumeration value.
|
Icon |
getIcon()
Deprecated.
Gets the icon for this enumeration value.
|
static Icon |
getNullIcon()
Deprecated.
Gets the null icon.
|
protected static Icon |
loadIconResource(Class a_class,
String name)
Deprecated.
Load an icon for this enumeration.
|
String |
toString()
Deprecated.
Gets the string representation of this object.
|
compareTo, equals, family, identifier, matches, name, ordinal, readResolve, valueOf
protected SimpleEnumerationType(Collection<E> values, String name, String description)
SimpleEnumerationType
to the given list using the given name
and
description
. The icon will be set to the Null Icon.values
- the list of values to add to.name
- the short name for the enum.description
- the description for the enum.protected SimpleEnumerationType(Collection<E> values, String name, String description, Icon icon)
SimpleEnumerationType
to the given list using the given name
and
description
.values
- the list of values to add to.name
- the short name for the enum.description
- the description for the enum.icon
- the icon for the enum.protected static Icon loadIconResource(Class a_class, String name)
loadIconResource
loads the icon found by a_class.getResource(name)
.a_class
- class to use to find icon resource.name
- name of icon resource, for example, "SOLID.gif"getNullIcon()
public static Icon getNullIcon()
loadIconResource
.
The null icon is a fixed size, 16x64, and its paint method simply returns.public String toString()
CodeList.name()
.toString
in class CodeList<E extends SimpleEnumerationType<E>>
public String getDescription()
public Icon getIcon()
Copyright © 1996–2019 Geotools. All rights reserved.