public class GeometryFeature extends AbstractFeature
Constructor and Description |
---|
GeometryFeature() |
Modifier and Type | Method and Description |
---|---|
Drawable |
getDrawable(java.awt.geom.AffineTransform viewportTransform)
This method returns a drawable Java2D shape or point that can be directly rendered onto a device.
|
java.awt.geom.Rectangle2D |
getMBR()
Returns the minimum bounding rectangle of the spatial attribute.
|
JGeometry |
getSpatialAttribute()
Returns the spatial attribute object.
|
JGeometry |
getSpatialAttributeClone()
Returns a clone of the spatial attribute
|
int |
getSpatialDimension()
Returns the feature spatial dimension.
|
java.awt.geom.Point2D[] |
getSpatialJavaPoints()
Returns an array of java points representing the vertexes location of the spatial object.
|
boolean |
isSubElementOf(GeoObject obj)
Returns true if this GeoObject is a sub element of the provided GeoObject
|
void |
setSpatialAttribute(java.lang.Object spatialAttr)
Sets the spatial attribute object
|
java.util.List<GeoObject> |
substract(java.util.List<? extends GeoObject> obj)
Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
|
clone, deepClone, equals, getAttribute, getAttributeNames, getAttributes, getAttributes, getKey, getLayer, removeAttribute, setAttribute, setAttributes, setKey, setLayer
public JGeometry getSpatialAttribute()
getSpatialAttribute
in class AbstractFeature
public void setSpatialAttribute(java.lang.Object spatialAttr)
setSpatialAttribute
in class AbstractFeature
spatialAttr
-public java.awt.geom.Rectangle2D getMBR()
getMBR
in interface GeoObject
getMBR
in class AbstractFeature
public int getSpatialDimension()
getSpatialDimension
in class AbstractFeature
public JGeometry getSpatialAttributeClone()
getSpatialAttributeClone
in class AbstractFeature
public java.awt.geom.Point2D[] getSpatialJavaPoints()
getSpatialJavaPoints
in class AbstractFeature
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
GeoObject
public boolean isSubElementOf(GeoObject obj)
GeoObject