Package ucar.nc2.ui.grid
Class ContourFeature
- java.lang.Object
-
- ucar.nc2.ui.gis.AbstractGisFeature
-
- ucar.nc2.ui.grid.ContourFeature
-
- All Implemented Interfaces:
GisFeature
public class ContourFeature extends AbstractGisFeature
An AbstractGisFeature derived class for contour lines. Created:
-
-
Constructor Summary
Constructors Constructor Description ContourFeature(List<ContourLine> conLines)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle2D
getBounds2D()
Get the bounding box for this feature.double
getContourValue()
Get the value of the contour level for all the contour lines in this object.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 ucar.nc2.ui.gis.AbstractGisFeature
getProjectedShape, getShape
-
-
-
-
Constructor Detail
-
ContourFeature
public ContourFeature(List<ContourLine> conLines)
constructor
-
-
Method Detail
-
getContourValue
public double getContourValue()
Get the value of the contour level for all the contour lines in this object.- Returns:
- double value
-
getBounds2D
public Rectangle2D getBounds2D()
Description copied from interface:GisFeature
Get the bounding box for this feature.- Specified by:
getBounds2D
in interfaceGisFeature
- Specified by:
getBounds2D
in classAbstractGisFeature
- Returns:
- rectangle bounding this feature
-
getGisParts
public Iterator getGisParts()
Description copied from interface:GisFeature
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.
-
getNumParts
public int getNumParts()
Description copied from interface:GisFeature
Get number of parts comprising this feature.- Specified by:
getNumParts
in interfaceGisFeature
- Specified by:
getNumParts
in classAbstractGisFeature
- Returns:
- number of parts comprising this feature.
-
getNumPoints
public int getNumPoints()
Description copied from interface:GisFeature
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.
-
-