public abstract class AbstractGisFeature extends java.lang.Object implements GisFeature
| Constructor and Description |
|---|
AbstractGisFeature() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.geom.Rectangle2D |
getBounds2D()
Get the bounding box for this feature.
|
abstract java.util.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.
|
java.awt.Shape |
getProjectedShape(ProjectionImpl dataProject,
ProjectionImpl displayProject)
Convert this GisFeature to a java.awt.Shape.
|
java.awt.Shape |
getShape()
Convert this GisFeature to a java.awt.Shape, using the default
coordinate system, mapping gisFeature(x,y) -> screen(x,y).
|
public abstract java.awt.geom.Rectangle2D getBounds2D()
GisFeaturegetBounds2D in interface GisFeaturepublic abstract int getNumPoints()
GisFeaturegetNumPoints in interface GisFeaturepublic abstract int getNumParts()
GisFeaturegetNumParts in interface GisFeaturepublic abstract java.util.Iterator getGisParts()
GisFeaturegetGisParts in interface GisFeaturepublic java.awt.Shape getShape()
public java.awt.Shape getProjectedShape(ProjectionImpl dataProject, ProjectionImpl displayProject)
dataProject - data Projection to use.displayProject - display Projection to use.