org.geotools.gui.swing
Class FrameFactory

java.lang.Object
  extended byorg.geotools.gui.swing.FrameFactory

public final class FrameFactory
extends java.lang.Object

A set of convenience methods for displaying geographic components in an Swing widget. This factory may be used for an easy visualisation of grid coverages or geometry objects in a Swing widget.

Version:
$Id: FrameFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
static void show(com.vividsolutions.jts.geom.Geometry geometry)
          Show the given geometry.
static void show(org.opengis.coverage.grid.GridCoverage coverage)
          Show the given grid coverage as an image.
static void show(GridCoverage coverage)
          Show the given grid coverage as an image.
static void showAsVectors(GridCoverage coverage)
          Show the given grid coverage as a field of vectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

show

public static void show(org.opengis.coverage.grid.GridCoverage coverage)
Show the given grid coverage as an image.

Parameters:
coverage - The grid coverage to show.

show

public static void show(GridCoverage coverage)
Show the given grid coverage as an image.

Parameters:
coverage - The grid coverage to show.

showAsVectors

public static void showAsVectors(GridCoverage coverage)
Show the given grid coverage as a field of vectors. The x component is taken from the first band and the y component from the second band.

Parameters:
coverage - The grid coverage to show.

show

public static void show(com.vividsolutions.jts.geom.Geometry geometry)
Show the given geometry.

Parameters:
geometry - The geometry to show.


Copyright © GeoTools. All Rights Reserved.