org.geotools.swing.utils
Class MapLayerUtils

java.lang.Object
  extended by org.geotools.swing.utils.MapLayerUtils

public class MapLayerUtils
extends java.lang.Object

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

Since:
2.7
Version:
$Id: MapLayerUtils.java 34442 2009-11-23 00:52:37Z mbedward $
Author:
Michael Bedward

Constructor Summary
MapLayerUtils()
           
 
Method Summary
static java.lang.String getGridAttributeName(MapLayer layer)
           
static boolean isGridLayer(MapLayer layer)
          Check if the given map layer contains a grid coverage or a grid coverage reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapLayerUtils

public MapLayerUtils()
Method Detail

isGridLayer

public static boolean isGridLayer(MapLayer layer)
Check if the given map layer contains a grid coverage or a grid coverage reader.

Implementation note: we avoid referencing org.geotools.coverage.grid classes directly here so that applications dealing only with other data types are not forced to have JAI in the classpath.

Parameters:
layer - the map layer
Returns:
true if this is a grid layer; false otherwise

getGridAttributeName

public static java.lang.String getGridAttributeName(MapLayer layer)


Copyright © 1996-2010 Geotools. All Rights Reserved.