Package ucar.unidata.gis
Class GisFeatureAdapter
java.lang.Object
ucar.unidata.gis.AbstractGisFeature
ucar.unidata.gis.GisFeatureAdapter
- All Implemented Interfaces:
GisFeature
This adapts a Gisfeature into a subclass of AbstractGisFeature.
Part of te ADT middleware pattern.
- Version:
- $Id: GisFeatureAdapter.java,v 1.5 2005/05/13 18:29:32 jeffmc Exp $
- Author:
- John Caron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the bounding box for this feature.Get the parts of this feature, in the form of an iterator.int
Get number of parts comprising this feature.int
Get total number of points in all parts of this feature.Methods inherited from class ucar.unidata.gis.AbstractGisFeature
getMapLines, getMapLines, getPointCount, getProjectedShape, getProjectedShape, getShape
-
Constructor Details
-
GisFeatureAdapter
_more_- Parameters:
gisFeature
-
-
-
Method Details
-
getBounds2D
Get the bounding box for this feature.- Specified by:
getBounds2D
in interfaceGisFeature
- Specified by:
getBounds2D
in classAbstractGisFeature
- Returns:
- rectangle bounding this feature
-
getNumPoints
public int getNumPoints()Get total number of points in all parts of this feature.- Specified by:
getNumPoints
in interfaceGisFeature
- Specified by:
getNumPoints
in classAbstractGisFeature
- 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 interfaceGisFeature
- Specified by:
getNumParts
in classAbstractGisFeature
- Returns:
- number of parts comprising this feature.
-
getGisParts
Get the parts of this feature, in the form of an iterator.- Specified by:
getGisParts
in interfaceGisFeature
- Specified by:
getGisParts
in classAbstractGisFeature
- Returns:
- the iterator over the parts of this feature. Each part is a GisPart.
-