|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.reader.MapperBasedMapDataSource
uk.me.parabola.mkgmap.reader.test.ElementTestDataSource
public class ElementTestDataSource
This is a map data source that just generates maps without reference to any external data.
Field Summary |
---|
Fields inherited from class uk.me.parabola.mkgmap.reader.MapperBasedMapDataSource |
---|
mapper |
Constructor Summary | |
---|---|
ElementTestDataSource()
|
Method Summary | |
---|---|
void |
config(EnhancedProperties props)
Used to mark that a reader needs to be configured by command line properties. |
java.lang.String[] |
copyrightMessages()
Get a suitable copyright message for this map source. |
boolean |
isFileSupported(java.lang.String name)
'Filenames' that are supported begin with test-map: |
void |
load(java.lang.String name)
Load a map by generating it in code. |
LevelInfo[] |
mapLevels()
Get the map levels for this map. |
Methods inherited from class uk.me.parabola.mkgmap.reader.MapperBasedMapDataSource |
---|
addBackground, addBackground, addBoundaryLine, getBounds, getConfig, getLines, getMapper, getOverviews, getPoints, getRoadNetwork, getShapes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.me.parabola.mkgmap.general.MapDataSource |
---|
getBounds, getLines, getOverviews, getPoints, getRoadNetwork, getShapes |
Constructor Detail |
---|
public ElementTestDataSource()
Method Detail |
---|
public boolean isFileSupported(java.lang.String name)
isFileSupported
in interface LoadableMapDataSource
name
- The name to check.
public void load(java.lang.String name) throws java.io.FileNotFoundException
load
in interface LoadableMapDataSource
name
- The name of the map to generate.
java.io.FileNotFoundException
- If the name is not recognised.public LevelInfo[] mapLevels()
LoadableMapDataSource
Note that it does not include the top empty level as we will always generate that in the main program automatically.
mapLevels
in interface LoadableMapDataSource
public java.lang.String[] copyrightMessages()
LoadableMapDataSource
copyrightMessages
in interface LoadableMapDataSource
public void config(EnhancedProperties props)
Configurable
config
in interface Configurable
config
in class MapperBasedMapDataSource
props
- The input properties.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |