main
Class MapImage

java.lang.Object
  extended by main.MapImage

public class MapImage
extends java.lang.Object

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

mapImage

private java.awt.image.BufferedImage mapImage

imageMapCityList

private java.util.ArrayList<ImageMapCity> imageMapCityList

description

private java.lang.String description
Constructor Detail

MapImage

public MapImage()
Creates a new MapImage without any parameters set.


MapImage

public MapImage(java.awt.image.BufferedImage mapImage)
Creates a new MapImage from the argument.

Parameters:
mapImage - a BufferedImage

MapImage

public MapImage(java.awt.image.BufferedImage mapImage,
                java.lang.String description)
Creates a new MapImage from the arguments.

Parameters:
mapImage - a BufferedImage
description - a String
Method Detail

setImage

public void setImage(java.awt.image.BufferedImage mapImage)
Sets the MapImage's image. If the image is already set, it is overwritten.

Parameters:
mapImage - a BufferedImage

getImage

public java.awt.image.BufferedImage getImage()
Returns the MapImage's image.

Returns:
a BufferedImage

setDescription

public void setDescription(java.lang.String description)
Sets the MapImage's description. If the description is already set, it is overwritten.

Parameters:
description - a String

getDescription

public java.lang.String getDescription()
Returns the MapImage's description.

Returns:
the description, a String

addImageMapCity

public void addImageMapCity(ImageMapCity city)
Adds an ImageMapCity to the MapImage.

Parameters:
city - a ImageMapCity

clearImageMapCity

public void clearImageMapCity()
deletes all cities from imageMapCity


getImageMapCityList

public java.util.ArrayList<ImageMapCity> getImageMapCityList()
Returns an ArrayList of ImageMapCity objects that belong to the MapImage.

Returns:
an ArrayList