uk.me.parabola.mkgmap.reader.osm
Class GType

java.lang.Object
  extended by uk.me.parabola.mkgmap.reader.osm.GType

public class GType
extends java.lang.Object

Holds the garmin type of an element and all the information that will be needed to represent it on the map. So we have a range of resolutions at which it will be present.


Field Summary
static int POINT
           
static int POLYGON
           
static int POLYLINE
           
 
Constructor Summary
GType(int featureKind, java.lang.String type)
           
GType(int featureKind, java.lang.String type, java.lang.String subtype)
           
 
Method Summary
 void fixLevels(LevelInfo[] levels)
          Set minLevel and maxLevel based on the resolution values set and the given levels info.
 java.lang.String getDefaultName()
           
 int getFeatureKind()
           
 int getMaxLevel()
           
 int getMaxResolution()
           
 int getMinLevel()
           
 int getMinResolution()
           
 int getRoadClass()
           
 int getRoadSpeed()
           
 int getType()
           
 boolean isContinueSearch()
           
 boolean isPropogateActions()
           
 boolean isRoad()
           
 void propagateActions(boolean propagate)
           
 void setContinueSearch(boolean continueSearch)
           
 void setDefaultName(java.lang.String defaultName)
           
 void setMaxResolution(int maxResolution)
           
 void setMinResolution(int minResolution)
           
 void setRoadClass(int roadClass)
           
 void setRoadSpeed(int roadSpeed)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POINT

public static final int POINT
See Also:
Constant Field Values

POLYLINE

public static final int POLYLINE
See Also:
Constant Field Values

POLYGON

public static final int POLYGON
See Also:
Constant Field Values
Constructor Detail

GType

public GType(int featureKind,
             java.lang.String type)

GType

public GType(int featureKind,
             java.lang.String type,
             java.lang.String subtype)
Method Detail

getFeatureKind

public int getFeatureKind()

getType

public int getType()

getMinResolution

public int getMinResolution()

setMinResolution

public void setMinResolution(int minResolution)

getMaxResolution

public int getMaxResolution()

setMaxResolution

public void setMaxResolution(int maxResolution)

getDefaultName

public java.lang.String getDefaultName()

setDefaultName

public void setDefaultName(java.lang.String defaultName)

fixLevels

public void fixLevels(LevelInfo[] levels)
Set minLevel and maxLevel based on the resolution values set and the given levels info. We do this because we used to work only on resolution, but we want to move more towards working with levels.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMinLevel

public int getMinLevel()

getMaxLevel

public int getMaxLevel()

getRoadClass

public int getRoadClass()

setRoadClass

public void setRoadClass(int roadClass)

getRoadSpeed

public int getRoadSpeed()

setRoadSpeed

public void setRoadSpeed(int roadSpeed)

isRoad

public boolean isRoad()

isContinueSearch

public boolean isContinueSearch()

propagateActions

public void propagateActions(boolean propagate)

isPropogateActions

public boolean isPropogateActions()

setContinueSearch

public void setContinueSearch(boolean continueSearch)