Interface LabelStore

  • All Known Implementing Classes:
    MapDataStoreLabelStore, TileBasedLabelStore

    public interface LabelStore
    The LabelStore is an abstract store for labels from which it is possible to retrieve a priority-ordered queue of items that are visible within a given bounding box for a zoom level.
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • clear

        void clear()
        Clears the data.
      • getVersion

        int getVersion()
        Returns a version number, which changes every time an update is made to the LabelStore.
        Returns:
        the version number
      • getVisibleItems

        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.
        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.