org.geotools.swing.utils
Class MapLayerUtils

Object
  extended by MapLayerUtils

public class MapLayerUtils
extends Object

Helper methods for swing module components that work with MapLayer objects.

Since:
2.7
Author:
Michael Bedward
Module:
modules/unsupported/swing (gt-swing.jar)

Field Summary
static String GRID_ATTR_KEY
          Key for the String value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that has the name of the grid attribute in the layer's feature collection; or an empty string if there is no grid attribute
static String IS_GRID_KEY
          Key for the boolean value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that indicates whether the layer contained a grid (or grid reader)
static String IS_GRID_READER_KEY
          Key for the boolean value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that indicates whether the layer contained a grid reader
 
Constructor Summary
MapLayerUtils()
           
 
Method Summary
static Map<String,Object> isGridLayer(MapLayer layer)
          Check if the given map layer contains a grid coverage or a grid coverage reader.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_GRID_KEY

public static final String IS_GRID_KEY
Key for the boolean value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that indicates whether the layer contained a grid (or grid reader)

See Also:
Constant Field Values

IS_GRID_READER_KEY

public static final String IS_GRID_READER_KEY
Key for the boolean value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that indicates whether the layer contained a grid reader

See Also:
Constant Field Values

GRID_ATTR_KEY

public static final String GRID_ATTR_KEY
Key for the String value in the Map returned by isGridLayer(org.geotools.map.MapLayer) that has the name of the grid attribute in the layer's feature collection; or an empty string if there is no grid attribute

See Also:
Constant Field Values
Constructor Detail

MapLayerUtils

public MapLayerUtils()
Method Detail

isGridLayer

public static Map<String,Object> isGridLayer(MapLayer layer)
Check if the given map layer contains a grid coverage or a grid coverage reader.

Parameters:
layer - the map layer
Returns:
a Map containing:
  • IS_GRID_KEY: (Boolean) true if the layer has a grid coverage or grid coverage reader
  • IS_GRID_READER_KEY: (Boolean) true if the layer has a grid coverage reader
  • GRID_ATTR_KEY: (String) the name of the attribute in the layer's feature collection that contains the grid coverage or reader


Copyright © 1996-2009 Geotools. All Rights Reserved.