Enum Class MapLayerTableCellRenderer.LayerControlItem

All Implemented Interfaces:
Serializable, Comparable<MapLayerTableCellRenderer.LayerControlItem>, Constable
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 Details

  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapLayerTableCellRenderer.LayerControlItem valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - 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