ilog.views.maps.geometry
Class IlvMapImage

java.lang.Object
  extended by ilog.views.maps.IlvMapGeometry
      extended by ilog.views.maps.geometry.IlvMapArea
          extended by ilog.views.maps.geometry.IlvMapImage
Direct Known Subclasses:
IlvMapRasterGeometry, IlvObjectSDOFeatureIterator.IlvMapSDOImageBlock

public class IlvMapImage
extends IlvMapArea

This class defines an image.

Since:
ILOG JViews 3.0

Field Summary
 ImageProducer imageProducer
          The ImageProducer of the image.
 IlvCoordinate lowerRightCorner
          The lower-right corner of the image.
 IlvCoordinate upperLeftCorner
          The upper-left corner of the image.
 
Constructor Summary
IlvMapImage()
          Initializes an instance of the class.
 
Method Summary
 boolean contains(IlvCoordinate coordinate)
          Returns true if coordinate is contained in the object.
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 Image getImage()
          Retrieves the image set by the setImage method.
 IlvMapCurve getOutline()
          Returns the curve that represents the outline of this image.
 RenderedImage getRenderedImage()
          Retrieves the RenderedImage set by the setRenderedImage method.
 void setImage(Image image)
          Sets the Image for this geometry.
 void setRenderedImage(RenderedImage image)
          Sets the RenderedImage for this geometry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

upperLeftCorner

public IlvCoordinate upperLeftCorner
The upper-left corner of the image.


lowerRightCorner

public IlvCoordinate lowerRightCorner
The lower-right corner of the image.


imageProducer

public ImageProducer imageProducer
The ImageProducer of the image.

Constructor Detail

IlvMapImage

public IlvMapImage()
Initializes an instance of the class.

Method Detail

setImage

public void setImage(Image image)
Sets the Image for this geometry. If a non-null image is set, the renderer will use this image to produce an IlvIcon instead of using the ImageProducer of the IlvMapImage geometry.

Parameters:
image - The Image.
Since:
JViews 5.0

getImage

public Image getImage()
Retrieves the image set by the setImage method.

Since:
JViews 5.0
See Also:
setImage(java.awt.Image)

setRenderedImage

public void setRenderedImage(RenderedImage image)
Sets the RenderedImage for this geometry. If a non-null image is set, the renderer will use this image to produce an IlvIcon instead of using the ImageProducer of the IlvMapImage geometry.

Parameters:
image - The RenderedImage.
Since:
JViews 5.0

getRenderedImage

public RenderedImage getRenderedImage()
Retrieves the RenderedImage set by the setRenderedImage method.

Since:
JViews 5.0
See Also:
setRenderedImage(java.awt.image.RenderedImage)

contains

public boolean contains(IlvCoordinate coordinate)
Returns true if coordinate is contained in the object.

Specified by:
contains in class IlvMapArea
Parameters:
coordinate - The point to be checked.
Returns:
true if coordinate is contained in the object.
Since:
JViews 3.5

getOutline

public IlvMapCurve getOutline()
Returns the curve that represents the outline of this image. The outline of the image is a polyline created from the corner points of the image, in the following order:

Specified by:
getOutline in class IlvMapArea
Returns:
The outline of this image.
Since:
JViews 3.5

getBounds

public Rectangle2D getBounds(Rectangle2D result)
Returns the bounds of this IlvMapGeometry

Specified by:
getBounds in class IlvMapGeometry


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.