|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.osmstyle.StyleImpl
public class StyleImpl
A style is a collection of files that describe the mapping between the OSM features and the garmin features. This file reads in those files and provides methods for using the information. The files are either contained in a directory, in a package or in a zip'ed file.
Constructor Summary | |
---|---|
StyleImpl(java.lang.String loc,
java.lang.String name)
Create a style from the given location and name. |
Method Summary | |
---|---|
void |
applyOptionOverride(java.util.Properties config)
After the style is loaded we override any options that might have been set in the style itself with the command line options. |
StyleInfo |
getInfo()
|
Rule |
getLineRules()
Get the rules that apply to lines. |
java.lang.String[] |
getNameTagList()
|
Rule |
getNodeRules()
Get the rules that apply to nodes. |
java.lang.String |
getOption(java.lang.String name)
|
LineAdder |
getOverlays(LineAdder lineAdder)
Get the overlay definitions. |
Rule |
getPolygonRules()
Get the rules that apply to polygons. |
Rule |
getRelationRules()
Get the relation rules. |
java.util.Set<java.lang.String> |
getUsedTags()
Get the tags that are used by this style. |
Rule |
getWayRules()
Get the rules that apply to ways. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleImpl(java.lang.String loc, java.lang.String name) throws java.io.FileNotFoundException
loc
- The location of the style. Can be null to mean just check
the classpath.name
- The name. Can be null if the location isn't. If it is
null then we just check for the first version file that can be found.
java.io.FileNotFoundException
- If the file doesn't exist. This can
include the version file being missing.Method Detail |
---|
public java.lang.String[] getNameTagList()
getNameTagList
in interface Style
public java.lang.String getOption(java.lang.String name)
getOption
in interface Style
public StyleInfo getInfo()
getInfo
in interface Style
public void applyOptionOverride(java.util.Properties config)
applyOptionOverride
in interface Style
config
- The command line options.public Rule getNodeRules()
Style
getNodeRules
in interface Style
public Rule getWayRules()
Style
getWayRules
in interface Style
public Rule getLineRules()
Style
getLineRules
in interface Style
public Rule getPolygonRules()
Style
getPolygonRules
in interface Style
public Rule getRelationRules()
Style
getRelationRules
in interface Style
public LineAdder getOverlays(LineAdder lineAdder)
Style
getOverlays
in interface Style
public java.util.Set<java.lang.String> getUsedTags()
Style
getUsedTags
in interface Style
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |