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 displayProject)
Convert this GisFeature to a java.awt.Shape.
|
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()
GisFeature
getBounds2D
in interface GisFeature
public abstract int getNumPoints()
GisFeature
getNumPoints
in interface GisFeature
public abstract int getNumParts()
GisFeature
getNumParts
in interface GisFeature
public abstract java.util.Iterator getGisParts()
GisFeature
getGisParts
in interface GisFeature
public java.awt.Shape getShape()
public java.awt.Shape getProjectedShape(ProjectionImpl displayProject)
displayProject
- Projection to use to displaypublic java.awt.Shape getProjectedShape(ProjectionImpl dataProject, ProjectionImpl displayProject)
dataProject
- data Projection to use.displayProject
- display Projection to use.