public abstract class NFEGeoObject extends java.lang.Object implements GeoObject
Constructor and Description |
---|
NFEGeoObject(java.lang.Object key, JGeometry geom, Layer layer)
Allocates a new instance of a subclass implementation
|
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.
|
JGeometry |
getGeometry()
Gets the GeoObject's geometry
|
java.lang.Object |
getKey()
Gets the key of the selected object.
|
Layer |
getLayer()
Gets the associated layer for this object.
|
java.awt.geom.Rectangle2D |
getMBR()
Gets the minimum bounding rectangle of this geo-object.
|
boolean |
isSubElementOf(GeoObject obj)
Returns true if this GeoObject is a sub element of the provided GeoObject
|
abstract void |
refreshGeometry()
Updates the geoobject's geometry.
|
void |
setGeometry(JGeometry geom)
Sets the GeoObject's geometry.
|
java.lang.Object |
setKey(java.lang.Object key)
Sets a new key on the object.
|
void |
setLayer(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
|
public NFEGeoObject(java.lang.Object key, JGeometry geom, Layer layer)
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 containedpublic java.lang.Object getKey()
GeoObject
public java.lang.Object setKey(java.lang.Object key)
GeoObject
public Layer getLayer()
GeoObject
public void setLayer(Layer layer)
GeoObject
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
GeoObject
getDrawable
in interface GeoObject
public java.awt.geom.Rectangle2D getMBR()
GeoObject
public boolean isSubElementOf(GeoObject obj)
GeoObject
isSubElementOf
in interface GeoObject
public java.util.List<GeoObject> substract(java.util.List<? extends GeoObject> objs)
GeoObject
public void setGeometry(JGeometry geom)
geom
- a geometry objectpublic JGeometry getGeometry()
public abstract void refreshGeometry()