public static enum ImageryInfo.ImageryCategory extends java.lang.Enum<ImageryInfo.ImageryCategory>
Enum Constant and Description |
---|
HISTORICMAP
A historic or otherwise outdated map.
|
HISTORICPHOTO
A historic or otherwise outdated aerial or satellite photo.
|
MAP
A map.
|
OSMBASEDMAP
A map based on OSM data.
|
OTHER
Any other type of imagery
|
PHOTO
A aerial or satellite photo.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
category |
private java.lang.String |
description |
private static java.util.Map<ImageProvider.ImageSizes,java.util.Map<ImageryInfo.ImageryCategory,javax.swing.ImageIcon>> |
iconCache |
Modifier and Type | Method and Description |
---|---|
static ImageryInfo.ImageryCategory |
fromString(java.lang.String s)
Returns the imagery category from the given category string.
|
java.lang.String |
getCategoryString()
Returns the unique string identifying this category.
|
java.lang.String |
getDescription()
Returns the description of this category.
|
javax.swing.ImageIcon |
getIcon(ImageProvider.ImageSizes size)
Returns the category icon at the given size.
|
static ImageryInfo.ImageryCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageryInfo.ImageryCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageryInfo.ImageryCategory PHOTO
public static final ImageryInfo.ImageryCategory MAP
public static final ImageryInfo.ImageryCategory HISTORICMAP
public static final ImageryInfo.ImageryCategory OSMBASEDMAP
public static final ImageryInfo.ImageryCategory HISTORICPHOTO
public static final ImageryInfo.ImageryCategory OTHER
private final java.lang.String category
private final java.lang.String description
private static final java.util.Map<ImageProvider.ImageSizes,java.util.Map<ImageryInfo.ImageryCategory,javax.swing.ImageIcon>> iconCache
public static ImageryInfo.ImageryCategory[] values()
for (ImageryInfo.ImageryCategory c : ImageryInfo.ImageryCategory.values()) System.out.println(c);
public static ImageryInfo.ImageryCategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getCategoryString()
public final java.lang.String getDescription()
public final javax.swing.ImageIcon getIcon(ImageProvider.ImageSizes size)
size
- icon wanted sizepublic static ImageryInfo.ImageryCategory fromString(java.lang.String s)
s
- The category string