| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.ImageParameters
public class ImageParameters
The ImageParameters class contains information about the map
 image on which to draw components. This includes its size, file location, and
 the latitude and longitude ranges that the map spans.
| Field Summary | |
|---|---|
private  int | 
imageHeight
 | 
private  java.lang.String | 
imageName
 | 
private  int | 
imageWidth
 | 
private  Position | 
lowerRightCorner
 | 
private  Position | 
upperLeftCorner
 | 
| Constructor Summary | |
|---|---|
ImageParameters(java.lang.String rawParams)
Constructs and new ImageParameters instance that is
 initialized by parsing string argument. | 
|
| Method Summary | |
|---|---|
 int | 
getImageHeight()
Returns the height of the map image in pixels.  | 
 java.lang.String | 
getImageName()
Returns the file name of the map image to use.  | 
 int | 
getImageWidth()
Returns the width of the map image in pixels.  | 
 Position | 
getLowerRightCorner()
Returns the GPS position of the lower-right corner of the map.  | 
 Position | 
getUpperLeftCorner()
Returns the GPS position of the upper-left corner of the map.  | 
private  void | 
parseLine(java.lang.String line)
 | 
 java.lang.String | 
toString()
Returns a string representation of this ImageParameters. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private java.lang.String imageName
private int imageHeight
private int imageWidth
private Position upperLeftCorner
private Position lowerRightCorner
| Constructor Detail | 
|---|
public ImageParameters(java.lang.String rawParams)
                throws java.text.ParseException
ImageParameters instance that is
 initialized by parsing string argument.
rawParams - a String with unparsed image parameters
java.text.ParseException| Method Detail | 
|---|
private void parseLine(java.lang.String line)
                throws java.text.ParseException
java.text.ParseExceptionpublic java.lang.String getImageName()
public int getImageWidth()
public int getImageHeight()
public Position getUpperLeftCorner()
public Position getLowerRightCorner()
public java.lang.String toString()
ImageParameters.
 This is for debugging purposes only.
toString in class java.lang.ObjectImageParameters
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||