Class NFEGeoObject
- java.lang.Object
-
- oracle.spatial.network.nfe.model.spatial.NFEGeoObject
-
- All Implemented Interfaces:
java.lang.Cloneable,GeoObject
- Direct Known Subclasses:
NFEFeatureElementGeoObject,NFENetworkElementGeoObject
public abstract class NFEGeoObject extends java.lang.Object implements GeoObject
The base GeoObject class used by NFE. It exposes the GeoObject's geometry.
-
-
Constructor Summary
Constructors Constructor Description NFEGeoObject(java.lang.Object key, JGeometry geom, Layer layer)Allocates a new instance of a subclass implementation
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DrawablegetDrawable(java.awt.geom.AffineTransform viewportTransform)This method returns a drawable Java2D shape or point that can be directly rendered onto a device.JGeometrygetGeometry()Gets the GeoObject's geometryjava.lang.ObjectgetKey()Gets the key of the selected object.LayergetLayer()Gets the associated layer for this object.java.awt.geom.Rectangle2DgetMBR()Gets the minimum bounding rectangle of this geo-object.booleanisSubElementOf(GeoObject obj)Returns true if this GeoObject is a sub element of the provided GeoObjectabstract voidrefreshGeometry()Updates the geoobject's geometry.voidsetGeometry(JGeometry geom)Sets the GeoObject's geometry.java.lang.ObjectsetKey(java.lang.Object key)Sets a new key on the object.voidsetLayer(Layer layer)Sets the layer to be associated with this object.java.util.List<GeoObject>substract(java.util.List<? extends GeoObject> objs)Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
-
-
-
Constructor Detail
-
NFEGeoObject
public NFEGeoObject(java.lang.Object key, JGeometry geom, Layer layer)Allocates a new instance of a subclass implementation- Parameters:
key- the value that uniquely identifies to the GeoObject among other GeoObjects in the same layergeom- the GeoObject's geometrylayer- the layer where the GeoObject is contained
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Description copied from interface:GeoObjectGets the key of the selected object.
-
setKey
public java.lang.Object setKey(java.lang.Object key)
Description copied from interface:GeoObjectSets a new key on the object.
-
getLayer
public Layer getLayer()
Description copied from interface:GeoObjectGets the associated layer for this object.
-
setLayer
public void setLayer(Layer layer)
Description copied from interface:GeoObjectSets the layer to be associated with this object.
-
getDrawable
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
Description copied from interface:GeoObjectThis 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.- Specified by:
getDrawablein interfaceGeoObject- Returns:
- a Drawable instance that references either a Shape or a Point2D
-
getMBR
public java.awt.geom.Rectangle2D getMBR()
Description copied from interface:GeoObjectGets the minimum bounding rectangle of this geo-object. The rectangle is in the same coordinate system as the object value.
-
isSubElementOf
public boolean isSubElementOf(GeoObject obj)
Description copied from interface:GeoObjectReturns true if this GeoObject is a sub element of the provided GeoObject- Specified by:
isSubElementOfin interfaceGeoObject- Returns:
-
substract
public java.util.List<GeoObject> substract(java.util.List<? extends GeoObject> objs)
Description copied from interface:GeoObjectReturns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
-
setGeometry
public void setGeometry(JGeometry geom)
Sets the GeoObject's geometry. Null values are not allowed- Parameters:
geom- a geometry object
-
getGeometry
public JGeometry getGeometry()
Gets the GeoObject's geometry- Returns:
- a geometry object
-
refreshGeometry
public abstract void refreshGeometry()
Updates the geoobject's geometry. Do not call this method directly if the geometry is spatial-indexed
-
-