public class IlvAreaOfInterest extends Object implements IlvPersistentObject
IlvAreaOfInterest
instance stores a rotation angle and
rectangle associated with a name and an optional preview image.Use this class to retrieve user selected areas on a map.
Constructor and Description |
---|
IlvAreaOfInterest(IlvAreaOfInterest src)
Creates a new
IlvAreaOfInterest object from a source area of
interest. |
IlvAreaOfInterest(IlvInputStream stream)
Creates a new
IlvAreaOfInterest instance from a stream. |
IlvAreaOfInterest(String name,
IlvRect rectangle,
double angle,
Image image)
Creates a new area of interest.
|
Modifier and Type | Method and Description |
---|---|
IlvAreaOfInterest |
copy()
Returns a new copy of this area of interest.
|
Image |
getImage()
Returns the preview image associated with this area of interest.
|
String |
getName()
Returns the name of this area of interest.
|
IlvRect |
getRectangle()
Returns the rectangle defining this area of interest.
|
void |
setImage(Image image)
Sets the preview image associated with this area of interest.
|
void |
setName(String name)
Sets the name for this area of interest.
|
String |
toString()
The
String representation of this area of interest. |
void |
write(IlvOutputStream stream)
Writes this object to an output stream.
|
void |
zoomTo(IlvManagerView view)
Zooms and rotates to an area of the view enclosed by this area of
interest.
|
public IlvAreaOfInterest(String name, IlvRect rectangle, double angle, Image image)
name
- The name for the new area.rectangle
- The rectangle defining the area of interest with latitude
and longitude values in radians.angle
- The rotation angle of the view.image
- A preview image of the new area of interest. Set to
null
if no image is available.public IlvAreaOfInterest(IlvInputStream stream) throws IlvReadFileException
IlvAreaOfInterest
instance from a stream.stream
- The input stream to read from.IlvReadFileException
- if an error occurs while the stream is being
read from.public IlvAreaOfInterest(IlvAreaOfInterest src)
IlvAreaOfInterest
object from a source area of
interest.src
- The area of interest to be copied.public String getName()
public void setName(String name)
name
- The new name to set.public Image getImage()
public void setImage(Image image)
image
- The preview image associated with this area of interest.public IlvRect getRectangle()
public String toString()
String
representation of this area of interest.public void zoomTo(IlvManagerView view)
view
- The view to be zoomed in.public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
stream
- The output stream to write this object to.IOException
- thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
public IlvAreaOfInterest copy()
IlvAreaOfInterest
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.