|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.MapImage
public class MapImage
The MapImage class contains all of the needed information to
make an image map of the nodes, edges, and cities. It contains a list of
ImageMapCity objects, a BufferedImage and a
description String.
| Field Summary | |
|---|---|
private java.lang.String |
description
|
private java.util.ArrayList<ImageMapCity> |
imageMapCityList
|
private java.awt.image.BufferedImage |
mapImage
|
| Constructor Summary | |
|---|---|
MapImage()
Creates a new MapImage without any parameters set. |
|
MapImage(java.awt.image.BufferedImage mapImage)
Creates a new MapImage from the argument. |
|
MapImage(java.awt.image.BufferedImage mapImage,
java.lang.String description)
Creates a new MapImage from the arguments. |
|
| Method Summary | |
|---|---|
void |
addImageMapCity(ImageMapCity city)
Adds an ImageMapCity to the MapImage. |
void |
clearImageMapCity()
deletes all cities from imageMapCity |
java.lang.String |
getDescription()
Returns the MapImage's description. |
java.awt.image.BufferedImage |
getImage()
Returns the MapImage's image. |
java.util.ArrayList<ImageMapCity> |
getImageMapCityList()
Returns an ArrayList of ImageMapCity
objects that belong to the MapImage. |
void |
setDescription(java.lang.String description)
Sets the MapImage's description. |
void |
setImage(java.awt.image.BufferedImage mapImage)
Sets the MapImage's image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.awt.image.BufferedImage mapImage
private java.util.ArrayList<ImageMapCity> imageMapCityList
private java.lang.String description
| Constructor Detail |
|---|
public MapImage()
MapImage without any parameters set.
public MapImage(java.awt.image.BufferedImage mapImage)
MapImage from the argument.
mapImage - a BufferedImage
public MapImage(java.awt.image.BufferedImage mapImage,
java.lang.String description)
MapImage from the arguments.
mapImage - a BufferedImagedescription - a String| Method Detail |
|---|
public void setImage(java.awt.image.BufferedImage mapImage)
MapImage's image. If the image is already set,
it is overwritten.
mapImage - a BufferedImagepublic java.awt.image.BufferedImage getImage()
MapImage's image.
BufferedImagepublic void setDescription(java.lang.String description)
MapImage's description. If the description is
already set, it is overwritten.
description - a Stringpublic java.lang.String getDescription()
MapImage's description.
Stringpublic void addImageMapCity(ImageMapCity city)
ImageMapCity to the MapImage.
city - a ImageMapCitypublic void clearImageMapCity()
public java.util.ArrayList<ImageMapCity> getImageMapCityList()
ArrayList of ImageMapCity
objects that belong to the MapImage.
ArrayList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||