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)

Constructor Summary
MapLayerUtils()
           
 
Method Summary
static 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 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 String getGridAttributeName(MapLayer layer)


Copyright © 1996-2010 Geotools. All Rights Reserved.