thredds.datamodel.gis
Class GisFeatureAdapter

java.lang.Object
  extended by thredds.datamodel.gis.AbstractGisFeature
      extended by thredds.datamodel.gis.GisFeatureAdapter
All Implemented Interfaces:
GisFeature

public class GisFeatureAdapter
extends AbstractGisFeature

This adapts a Gisfeature into a subclass of AbstractGisFeature. Part of te ADT middleware pattern.

Version:
$Id:GisFeatureAdapter.java 63 2006-07-12 21:50:51Z edavis $
Author:
John Caron

Constructor Summary
GisFeatureAdapter(GisFeature gisFeature)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds2D()
          Get the bounding box for this feature.
 java.util.Iterator getGisParts()
          Get the parts of this feature, in the form of an iterator.
 int getNumParts()
          Get number of parts comprising this feature.
 int getNumPoints()
          Get total number of points in all parts of this feature.
 
Methods inherited from class thredds.datamodel.gis.AbstractGisFeature
getProjectedShape, getProjectedShape, getShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GisFeatureAdapter

public GisFeatureAdapter(GisFeature gisFeature)
Method Detail

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Get the bounding box for this feature.

Specified by:
getBounds2D in interface GisFeature
Specified by:
getBounds2D in class AbstractGisFeature
Returns:
rectangle bounding this feature

getNumPoints

public int getNumPoints()
Get total number of points in all parts of this feature.

Specified by:
getNumPoints in interface GisFeature
Specified by:
getNumPoints in class AbstractGisFeature
Returns:
total number of points in all parts of this feature.

getNumParts

public int getNumParts()
Get number of parts comprising this feature.

Specified by:
getNumParts in interface GisFeature
Specified by:
getNumParts in class AbstractGisFeature
Returns:
number of parts comprising this feature.

getGisParts

public java.util.Iterator getGisParts()
Get the parts of this feature, in the form of an iterator.

Specified by:
getGisParts in interface GisFeature
Specified by:
getGisParts in class AbstractGisFeature
Returns:
the iterator over the parts of this feature. Each part is a GisPart.