|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.reader.MapperBasedMapDataSource
public abstract class MapperBasedMapDataSource
A convenient base class for all map data that is based on the MapDetails class (which is all of them so far).
Field Summary | |
---|---|
protected MapDetails |
mapper
|
Constructor Summary | |
---|---|
MapperBasedMapDataSource()
|
Method Summary | |
---|---|
protected void |
addBackground()
We add the background polygons if the map is not transparent. |
protected void |
addBackground(boolean mapHasPolygon4B)
|
void |
addBoundaryLine(Area area,
int type,
java.lang.String name)
|
void |
config(EnhancedProperties props)
Used to mark that a reader needs to be configured by command line properties. |
Area |
getBounds()
Get the area that this map covers. |
protected EnhancedProperties |
getConfig()
|
java.util.List<MapLine> |
getLines()
Get the list of lines that need to be rendered to the map. |
MapDetails |
getMapper()
|
java.util.List<Overview> |
getOverviews()
Get a list of every feature that is used in the map. |
java.util.List<MapPoint> |
getPoints()
Get the list of points that need to be rendered on the map. |
RoadNetwork |
getRoadNetwork()
Get the high level view of the road network. |
java.util.List<MapShape> |
getShapes()
Get the list of shapes that need to be rendered to the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final MapDetails mapper
Constructor Detail |
---|
public MapperBasedMapDataSource()
Method Detail |
---|
public Area getBounds()
getBounds
in interface MapDataSource
public java.util.List<MapLine> getLines()
getLines
in interface MapDataSource
MapLine
objects.public java.util.List<MapShape> getShapes()
MapDataSource
getShapes
in interface MapDataSource
MapShape
objects.public RoadNetwork getRoadNetwork()
MapDataSource
getRoadNetwork
in interface MapDataSource
RoadNetwork
object with all the connections between
roads. If this returns null, then the NET and NOD sections should
not be written.public java.util.List<Overview> getOverviews()
getOverviews
in interface MapDataSource
public java.util.List<MapPoint> getPoints()
MapDataSource
getPoints
in interface MapDataSource
MapPoint
objects.public void config(EnhancedProperties props)
Configurable
config
in interface Configurable
props
- The input properties.protected EnhancedProperties getConfig()
public MapDetails getMapper()
protected void addBackground()
protected void addBackground(boolean mapHasPolygon4B)
public void addBoundaryLine(Area area, int type, java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |