sources
Class MapImage

java.lang.Object
  extended bysources.MapImage

public class MapImage
extends java.lang.Object

This class represents an image file that can be imported into VanGogh


Constructor Summary
MapImage(java.awt.Image im, double x, double y, double width, double height, java.lang.String name)
          Creates new MapImage
 
Method Summary
static MapImage createMapImageFromFile(java.lang.String filename, java.awt.Component com)
           
 double getHeight()
          Getter for property height.
 java.awt.Image getImage()
          Getter for property image.
 java.lang.String getName()
          Getter for property name.
 double getWidth()
          Getter for property width.
 double getX()
          Getter for property x.
 double getY()
          Getter for property y.
static void main(java.lang.String[] args)
           
 void setHeight(double height)
          Setter for property height.
 void setImage(java.awt.Image image)
          Setter for property image.
 void setName(java.lang.String name)
          Setter for property name.
 void setWidth(double width)
          Setter for property width.
 void setX(double x)
          Setter for property x.
 void setY(double y)
          Setter for property y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapImage

public MapImage(java.awt.Image im,
                double x,
                double y,
                double width,
                double height,
                java.lang.String name)
Creates new MapImage

Method Detail

getHeight

public double getHeight()
Getter for property height.

Returns:
Value of property height.

setHeight

public void setHeight(double height)
Setter for property height.

Parameters:
height - New value of property height.

getImage

public java.awt.Image getImage()
Getter for property image.

Returns:
Value of property image.

setImage

public void setImage(java.awt.Image image)
Setter for property image.

Parameters:
image - New value of property image.

getWidth

public double getWidth()
Getter for property width.

Returns:
Value of property width.

setWidth

public void setWidth(double width)
Setter for property width.

Parameters:
width - New value of property width.

getX

public double getX()
Getter for property x.

Returns:
Value of property x.

setX

public void setX(double x)
Setter for property x.

Parameters:
x - New value of property x.

getY

public double getY()
Getter for property y.

Returns:
Value of property y.

setY

public void setY(double y)
Setter for property y.

Parameters:
y - New value of property y.

createMapImageFromFile

public static MapImage createMapImageFromFile(java.lang.String filename,
                                              java.awt.Component com)

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

main

public static void main(java.lang.String[] args)