Package org.mapsforge.map.layer.labels
Class MapDataStoreLabelStore
- java.lang.Object
-
- org.mapsforge.map.layer.labels.MapDataStoreLabelStore
-
- All Implemented Interfaces:
LabelStore
public class MapDataStoreLabelStore extends java.lang.Object implements LabelStore
A LabelStore that reads the labels out of a MapDataStore
-
-
Constructor Summary
Constructors Constructor Description MapDataStoreLabelStore(MapDataStore mapDataStore, RenderThemeFuture renderThemeFuture, float textScale, DisplayModel displayModel, org.mapsforge.core.graphics.GraphicFactory graphicFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the data.int
getVersion()
Returns a version number, which changes every time an update is made to the LabelStore.java.util.List<org.mapsforge.core.mapelements.MapElementContainer>
getVisibleItems(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
Gets the items that are visible on a set of tiles.
-
-
-
Constructor Detail
-
MapDataStoreLabelStore
public MapDataStoreLabelStore(MapDataStore mapDataStore, RenderThemeFuture renderThemeFuture, float textScale, DisplayModel displayModel, org.mapsforge.core.graphics.GraphicFactory graphicFactory)
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:LabelStore
Clears the data.- Specified by:
clear
in interfaceLabelStore
-
getVersion
public int getVersion()
Description copied from interface:LabelStore
Returns a version number, which changes every time an update is made to the LabelStore.- Specified by:
getVersion
in interfaceLabelStore
- Returns:
- the version number
-
getVisibleItems
public java.util.List<org.mapsforge.core.mapelements.MapElementContainer> getVisibleItems(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
Description copied from interface:LabelStore
Gets the items that are visible on a set of tiles.- Specified by:
getVisibleItems
in interfaceLabelStore
- Parameters:
upperLeft
- tile in upper left corner of visible area.lowerRight
- tile in lower right corner of visible area.- Returns:
- a list of MapElements that are visible on the tiles.
-
-