uk.me.parabola.mkgmap.reader.osm
Class GType
java.lang.Object
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.
Constructor Summary |
GType(int featureKind,
java.lang.String type)
|
GType(int featureKind,
java.lang.String type,
java.lang.String subtype)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
GType
public GType(int featureKind,
java.lang.String type)
GType
public GType(int featureKind,
java.lang.String type,
java.lang.String subtype)
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)