Constructor and Description |
---|
ImageObject(java.lang.Object key, java.awt.Image value)
Creates a new instance with the given key and image
|
Modifier and Type | Method and 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 GeoObject
|
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> obj)
Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
|
public ImageObject(java.lang.Object key, java.awt.Image value)
key
-value
-public ImageObject clone()
clone
in class java.lang.Object
public boolean isSubElementOf(GeoObject obj)
GeoObject
isSubElementOf
in interface GeoObject
public java.util.List<GeoObject> substract(java.util.List<? extends GeoObject> obj)
GeoObject
public java.lang.Object getKey()
public java.lang.Object setKey(java.lang.Object key)
public Layer getLayer()
public void setLayer(Layer layer)
public java.awt.Image getImage()
public Drawable getDrawable(java.awt.geom.AffineTransform viewportTransform)
getDrawable
in interface GeoObject
viewportTransform
-public Drawable[] getDrawables(java.awt.geom.AffineTransform viewportTransform)
viewportTransform
-