Class ImageObject
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.geoobject.ImageObject
-
-
Constructor Summary
Constructors Constructor Description ImageObject(java.lang.Object key, java.awt.Image value)
Creates a new instance with the given key and image
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageObject
clone()
Drawable
getDrawable(java.awt.geom.AffineTransform viewportTransform)
This method returns a drawable Java2D shape or point that can be directly rendered onto a device.Drawable[]
getDrawables(java.awt.geom.AffineTransform viewportTransform)
This method returns an array of drawable Java2D shape or point that can be directly rendered onto a device.java.awt.Image
getImage()
Gets the image associated with this geo-object.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 GeoObjectjava.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> obj)
Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
-
-
-
Method Detail
-
clone
public ImageObject clone()
- Overrides:
clone
in classjava.lang.Object
-
isSubElementOf
public boolean isSubElementOf(GeoObject obj)
Description copied from interface:GeoObject
Returns true if this GeoObject is a sub element of the provided GeoObject- Specified by:
isSubElementOf
in interfaceGeoObject
- Returns:
-
substract
public java.util.List<GeoObject> substract(java.util.List<? extends GeoObject> obj)
Description copied from interface:GeoObject
Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
-
getKey
public java.lang.Object getKey()
Gets the key of the selected object.
-
setKey
public java.lang.Object setKey(java.lang.Object key)
Sets a new key on the object.
-
getLayer
public Layer getLayer()
Gets the associated layer for this object.
-
setLayer
public void setLayer(Layer layer)
Sets the layer to be associated with this object.
-
getImage
public java.awt.Image getImage()
Gets the image associated with this geo-object.- Returns:
-
getDrawable
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
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.- Specified by:
getDrawable
in interfaceGeoObject
- Parameters:
viewportTransform
-- Returns:
- a Drawable instance that references either a Shape or a Point2D
-
getDrawables
public Drawable[] getDrawables(java.awt.geom.AffineTransform viewportTransform)
This method returns an array of 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. This can be used to get pieces of geometry collections or multi points.- Parameters:
viewportTransform
-- Returns:
- a Drawable instance that references either a Shape or a Point2D
-
-