Package ucar.nc2.ui.gis
Class GisFeatureAdapter
- java.lang.Object
-
- ucar.nc2.ui.gis.AbstractGisFeature
-
- ucar.nc2.ui.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.
-
-
Constructor Summary
Constructors Constructor Description GisFeatureAdapter(GisFeature gisFeature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle2DgetBounds2D()Get the bounding box for this feature.IteratorgetGisParts()Get the parts of this feature, in the form of an iterator.intgetNumParts()Get number of parts comprising this feature.intgetNumPoints()Get total number of points in all parts of this feature.-
Methods inherited from class ucar.nc2.ui.gis.AbstractGisFeature
getProjectedShape, getShape
-
-
-
-
Constructor Detail
-
GisFeatureAdapter
public GisFeatureAdapter(GisFeature gisFeature)
-
-
Method Detail
-
getBounds2D
public Rectangle2D getBounds2D()
Get the bounding box for this feature.- Specified by:
getBounds2Din interfaceGisFeature- Specified by:
getBounds2Din classAbstractGisFeature- Returns:
- rectangle bounding this feature
-
getNumPoints
public int getNumPoints()
Get total number of points in all parts of this feature.- Specified by:
getNumPointsin interfaceGisFeature- Specified by:
getNumPointsin 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:
getNumPartsin interfaceGisFeature- Specified by:
getNumPartsin classAbstractGisFeature- Returns:
- number of parts comprising this feature.
-
getGisParts
public Iterator getGisParts()
Get the parts of this feature, in the form of an iterator.- Specified by:
getGisPartsin interfaceGisFeature- Specified by:
getGisPartsin classAbstractGisFeature- Returns:
- the iterator over the parts of this feature. Each part is a GisPart.
-
-