net.kolls.railworld.io
Class MetaData

java.lang.Object
  extended by net.kolls.railworld.io.MetaData

public class MetaData
extends java.lang.Object

A data holding class for the meta-data of a map.

Author:
Steve Kollmansberger

Field Summary
 java.lang.String author
          Name of the author.
 int centerX
          The center X position shown on the display.
 int centerY
          The center Y position shown on the display.
 java.lang.String comment
          Comment about the map.
 double feetPerPixel
          Distance scale.
 java.lang.String imgfile
          The file name (without path) of the image.
 java.io.File ourFile
          Represents the file that contains the map data; or, if none is yet determined, represents the directory that contains the image file.
 java.lang.String title
          Map title.
 double track
          Temporary variable, used for calculating the total length of track in feet.
 double zoom
          Current zoom.
 
Constructor Summary
MetaData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imgfile

public java.lang.String imgfile
The file name (without path) of the image.


author

public java.lang.String author
Name of the author.


comment

public java.lang.String comment
Comment about the map.


title

public java.lang.String title
Map title. Will be displayed in the title bar.


ourFile

public java.io.File ourFile
Represents the file that contains the map data; or, if none is yet determined, represents the directory that contains the image file. In some cases may be null if the image and map are not files (e.g. URLs).


centerX

public int centerX
The center X position shown on the display.


centerY

public int centerY
The center Y position shown on the display.


feetPerPixel

public double feetPerPixel
Distance scale. Should be loaded into the Distance class ASAP.

See Also:
Distance.feetPerPixels

zoom

public double zoom
Current zoom.

See Also:
RailCanvas.zoom

track

public double track
Temporary variable, used for calculating the total length of track in feet.

Constructor Detail

MetaData

public MetaData()