Class MapDataStoreLabelStore

  • All Implemented Interfaces:
    LabelStore

    public class MapDataStoreLabelStore
    extends java.lang.Object
    implements LabelStore
    A LabelStore that reads the labels out of a MapDataStore
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface LabelStore
      • 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 interface LabelStore
        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 interface LabelStore
        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.