org.geotools.swing
Enum MapLayerTableCellRenderer.LayerControlItem

Object
  extended by Enum<MapLayerTableCellRenderer.LayerControlItem>
      extended by MapLayerTableCellRenderer.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
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 layer
VISIBLE
          Layer visibility - whether the layer will be shown or hidden when the map display is drawn
 
Method Summary
 Icon getIcon()
          Get the icon used to signify the 'on' state for toggle controls or the single icon for non-toggle controls
 Icon 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're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 final MapLayerTableCellRenderer.LayerControlItem[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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 name

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


Copyright © 1996-2009 Geotools. All Rights Reserved.