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 SummaryEnum Constants Enum Constant Description REMOVESELECTEDLayer selection - the selected status of layers can be used to include or exclude them in map queries etc.STYLELayer style - to open a style dialog for the layerVISIBLELayer visibility - whether the layer will be shown or hidden when the map display is drawn
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IcongetIcon()Get the icon used to signify the 'on' state for toggle controls or the single icon for non-toggle controlsIcongetOffIcon()Get the icon used to signify the 'off' state.static MapLayerTableCellRenderer.LayerControlItemvalueOf(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- 
VISIBLEpublic static final MapLayerTableCellRenderer.LayerControlItem VISIBLE Layer visibility - whether the layer will be shown or hidden when the map display is drawn
 - 
SELECTEDpublic static final MapLayerTableCellRenderer.LayerControlItem SELECTED Layer selection - the selected status of layers can be used to include or exclude them in map queries etc.
 - 
STYLEpublic static final MapLayerTableCellRenderer.LayerControlItem STYLE Layer style - to open a style dialog for the layer
 - 
REMOVEpublic static final MapLayerTableCellRenderer.LayerControlItem REMOVE 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
getIconpublic 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
 
 - 
getOffIconpublic 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
 
 
- 
 
-