Class GeometryFeature
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.geoobject.AbstractFeature
-
- oracle.spatial.network.nfe.vis.maps.geoobject.GeometryFeature
-
- All Implemented Interfaces:
java.lang.Cloneable
,GeoObject
public class GeometryFeature extends AbstractFeature
Defines a geometry feature to be used in editable geometry sets.
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.vis.maps.geoobject.AbstractFeature
attributes, layer, spatialAttr
-
-
Constructor Summary
Constructors Constructor Description GeometryFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 attributeint
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 GeoObjectvoid
setSpatialAttribute(java.lang.Object spatialAttr)
Sets the spatial attribute objectjava.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-
Methods inherited from class oracle.spatial.network.nfe.vis.maps.geoobject.AbstractFeature
clone, deepClone, equals, getAttribute, getAttributeNames, getAttributes, getAttributes, getKey, getLayer, removeAttribute, setAttribute, setAttributes, setKey, setLayer
-
-
-
-
Method Detail
-
getSpatialAttribute
public JGeometry getSpatialAttribute()
Returns the spatial attribute object.- Overrides:
getSpatialAttribute
in classAbstractFeature
- Returns:
-
setSpatialAttribute
public void setSpatialAttribute(java.lang.Object spatialAttr)
Sets the spatial attribute object- Overrides:
setSpatialAttribute
in classAbstractFeature
- Parameters:
spatialAttr
-
-
getMBR
public java.awt.geom.Rectangle2D getMBR()
Returns the minimum bounding rectangle of the spatial attribute.- Specified by:
getMBR
in interfaceGeoObject
- Specified by:
getMBR
in classAbstractFeature
- Returns:
-
getSpatialDimension
public int getSpatialDimension()
Returns the feature spatial dimension.- Specified by:
getSpatialDimension
in classAbstractFeature
- Returns:
- -1 if geometry is null.
-
getSpatialAttributeClone
public JGeometry getSpatialAttributeClone()
Returns a clone of the spatial attribute- Specified by:
getSpatialAttributeClone
in classAbstractFeature
- Returns:
-
getSpatialJavaPoints
public java.awt.geom.Point2D[] getSpatialJavaPoints()
Returns an array of java points representing the vertexes location of the spatial object.- Specified by:
getSpatialJavaPoints
in classAbstractFeature
- Returns:
-
getDrawable
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
Description copied from interface:GeoObject
This method returns a drawable Java2D shape or point that can be directly rendered onto a device. If a non-null viewportTransform is supplied, then it is applied and result returned.- Returns:
- a Drawable instance that references either a Shape or a Point2D
-
isSubElementOf
public boolean isSubElementOf(GeoObject obj)
Description copied from interface:GeoObject
Returns true if this GeoObject is a sub element of the provided GeoObject- Returns:
-
-