|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.gps.maps.DarmstadtMapConfiguration
The DarmstadtMapConfiguration
class is used to read metadata
for maps of Darmstadt. This metadata is usually stored in a file called
"karten.txt" which contains metadata for multiple map sets.
Field Summary | |
private int |
index_
index of current configuration |
private LinkedList |
mapConfiguration_
list of configurations for all map sets. |
Constructor Summary | |
DarmstadtMapConfiguration(File f)
Creates a new DarmstadtMapConfiguration to read from the
specified File object. |
|
DarmstadtMapConfiguration(String pathname)
Creates a new DarmstadtMapConfiguration to read from the
specified file pathname . |
Method Summary | |
LinkedList |
getConfigurationNames()
Returns a LinkedList of all configuration names contained
in this DarmstadtMapConfiguration . |
String |
getFormat()
Returns the extension of the tile image files of the currently selected configuration. |
Longitude |
getGeoX1()
Returns the Longitude of the western border of the
currently selected configuration. |
Longitude |
getGeoX2()
Returns the Longitude of the eastern border of the
currently selected configuration. |
Latitude |
getGeoY1()
Returns the Latitude of the northern border of the
currently selected configuration. |
Latitude |
getGeoY2()
Returns the Latitude of the southern border of the currently
selected configuration. |
int |
getId()
Returns the id of the currently selected configuration. |
String |
getPath()
Returns the path to the tile images of the currently selected configuration. |
int |
getRectH()
Returns the height of a tile image of the currently selected configuration measured in pixels. |
int |
getRectW()
Returns the width of a tile image of the currently selected configuration measured in pixels. |
int |
getSizeH()
Returns the height of the entire map of the currently selected configuration measured in pixels. |
int |
getSizeW()
Returns the width of the entire map of the currently selected configuration measured in pixels. |
void |
load(File f)
Reads and parses the specified File object. |
boolean |
select(int index)
Selects the configuration at the given index. |
private DarmstadtMapConfigurationEntry |
selectedEntry()
Returns the currently selected configuration. |
String |
toString()
Returns the string representation of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private LinkedList mapConfiguration_
private int index_
Constructor Detail |
public DarmstadtMapConfiguration(File f) throws FileNotFoundException, IOException
DarmstadtMapConfiguration
to read from the
specified File
object.
f
- the configuration file to read from
FileNotFoundException
- if the specified file could not be opened
for reading
IOException
- if an input or an output exception occuredpublic DarmstadtMapConfiguration(String pathname) throws FileNotFoundException, IOException
DarmstadtMapConfiguration
to read from the
specified file pathname
.
pathname
- the name of the configuration path to read from
FileNotFoundException
- if the specified path could not be opened
for reading
IOException
- if an input or an output exception occuredMethod Detail |
public boolean select(int index)
index
- the index of the configuration to select
public void load(File f) throws FileNotFoundException, IOException, AngularDistanceFormatException
File
object.
f
- the configuration file to read from
FileNotFoundException
- if the specified file could not be opened
for reading
IOException
- if an input or an output exception occured
AngularDistanceFormatException
- if an exception occured while
parsing an AngluarDistance
public LinkedList getConfigurationNames()
LinkedList
of all configuration names contained
in this DarmstadtMapConfiguration
.
LinkedList
of all configuration names contained
in this DarmstadtMapConfiguration
.public int getId()
public int getSizeW()
public int getSizeH()
public Longitude getGeoX1()
Longitude
of the western border of the
currently selected configuration.
Longitude
of the western border of the
currently selected configurationpublic Latitude getGeoY1()
Latitude
of the northern border of the
currently selected configuration.
Latitude
of the northern border of the
currently selected configurationpublic Longitude getGeoX2()
Longitude
of the eastern border of the
currently selected configuration.
Longitude
of the eastern border of the
currently selected configurationpublic Latitude getGeoY2()
Latitude
of the southern border of the currently
selected configuration.
Latitude
of the southern border of the currently
selected configurationpublic int getRectH()
public int getRectW()
public String getFormat()
public String getPath()
public String toString()
private DarmstadtMapConfigurationEntry selectedEntry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |