public abstract class AbstractGisFeature extends Object implements GisFeature
| Constructor and Description |
|---|
AbstractGisFeature() |
| Modifier and Type | Method and Description |
|---|---|
abstract Rectangle2D |
getBounds2D()
Get the bounding box for this feature.
|
abstract Iterator |
getGisParts()
Get the parts of this feature, in the form of an iterator.
|
abstract int |
getNumParts()
Get number of parts comprising this feature.
|
abstract int |
getNumPoints()
Get total number of points in all parts of this feature.
|
Shape |
getProjectedShape(ProjectionImpl displayProject)
Convert this GisFeature to a java.awt.Shape.
|
Shape |
getProjectedShape(ProjectionImpl dataProject,
ProjectionImpl displayProject)
Convert this GisFeature to a java.awt.Shape.
|
Shape |
getShape()
Convert this GisFeature to a java.awt.Shape, using the default
coordinate system, mapping gisFeature(x,y) -> screen(x,y).
|
public abstract Rectangle2D getBounds2D()
GisFeaturegetBounds2D in interface GisFeaturepublic abstract int getNumPoints()
GisFeaturegetNumPoints in interface GisFeaturepublic abstract int getNumParts()
GisFeaturegetNumParts in interface GisFeaturepublic abstract Iterator getGisParts()
GisFeaturegetGisParts in interface GisFeaturepublic Shape getShape()
public Shape getProjectedShape(ProjectionImpl displayProject)
displayProject - Projection to use to displaypublic Shape getProjectedShape(ProjectionImpl dataProject, ProjectionImpl displayProject)
dataProject - data Projection to use.displayProject - display Projection to use.Copyright © 1999–2014 UCAR/Unidata. All rights reserved.