Package org.geotools.swing
Enum MapLayerTableCellRenderer.LayerControlItem
- Object
-
- Enum<MapLayerTableCellRenderer.LayerControlItem>
-
- LayerControlItem
-
- All Implemented Interfaces:
Serializable
,Comparable<MapLayerTableCellRenderer.LayerControlItem>
- Enclosing class:
- MapLayerTableCellRenderer
public static enum MapLayerTableCellRenderer.LayerControlItem extends Enum<MapLayerTableCellRenderer.LayerControlItem>
Items used to display layer states and controls. Each item has one or two icons associated with it: one for simple controls, two for toggle controls.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REMOVE
SELECTED
Layer selection - the selected status of layers can be used to include or exclude them in map queries etc.STYLE
Layer style - to open a style dialog for the layerVISIBLE
Layer visibility - whether the layer will be shown or hidden when the map display is drawn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Icon
getIcon()
Get the icon used to signify the 'on' state for toggle controls or the single icon for non-toggle controlsIcon
getOffIcon()
Get the icon used to signify the 'off' state.static MapLayerTableCellRenderer.LayerControlItem
valueOf(String name)
Returns the enum constant of this type with the specified name.static MapLayerTableCellRenderer.LayerControlItem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VISIBLE
public static final MapLayerTableCellRenderer.LayerControlItem VISIBLE
Layer visibility - whether the layer will be shown or hidden when the map display is drawn
-
SELECTED
public static final MapLayerTableCellRenderer.LayerControlItem SELECTED
Layer selection - the selected status of layers can be used to include or exclude them in map queries etc.
-
STYLE
public static final MapLayerTableCellRenderer.LayerControlItem STYLE
Layer style - to open a style dialog for the layer
-
REMOVE
public static final MapLayerTableCellRenderer.LayerControlItem REMOVE
-
-
Method Detail
-
values
public static MapLayerTableCellRenderer.LayerControlItem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MapLayerTableCellRenderer.LayerControlItem c : MapLayerTableCellRenderer.LayerControlItem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapLayerTableCellRenderer.LayerControlItem valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIcon
public Icon getIcon()
Get the icon used to signify the 'on' state for toggle controls or the single icon for non-toggle controls- Returns:
- the icon
-
getOffIcon
public Icon getOffIcon()
Get the icon used to signify the 'off' state. If called for a non-toggle control this returns the single icon.- Returns:
- the icon
-
-