TileBasedLabelStore class

A LabelStore where the data is stored per tile.

Inheritance

Constructors

TileBasedLabelStore(int capacity)

Properties

capacity int
read / write, inherited
expiration Duration
write-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
lastVisibleTileSet Set<Tile>
read / write
length int
return the number of element in the cache
read-only, inherited
loader LoaderFunc<Tile, List<MapElementContainer>>
write-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
storage Storage<Tile, List<MapElementContainer>>
read / write, inherited
syncLoading bool
write-only, inherited
values List<CacheEntry<Tile, List<MapElementContainer>>>
read-only, inherited
version int
read / write

Methods

clear() → void
remove all the entry inside the cache
inherited
containsKey(Tile key) bool
inherited
destroy() → void
get(Tile key) List<MapElementContainer>
return the element identify by key
inherited
getVersion() int
Returns a version number, which changes every time an update is made to the LabelStore. [...]
getVisibleItems(Tile upperLeft, Tile lowerRight) List<MapElementContainer>
Gets the items that are visible on a set of tiles. [...]
getVisibleItemsInternal(Set<Tile> tiles) List<MapElementContainer>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
put(Tile key, List<MapElementContainer> value) → void
inherited
remove(Tile key) List<MapElementContainer>
inherited
requiresTile(Tile tile) bool
Returns if a tile is in the current tile set and no data is stored for this tile. [...]
set(Tile key, List<MapElementContainer> element) Cache<Tile, List<MapElementContainer>>
add element in the cache at key
inherited
setWorkingSet(Set<Tile> workingSet) → void
Sets the current working set, ensuring that elements in this working set will not be ejected in the near future. [...]
inherited
storeMapItems(Tile tile, List<MapElementContainer> mapItems) → void
Stores a list of MapElements against a tile. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](Tile key) → dynamic
return the value at key
inherited
operator []=(Tile key, List<MapElementContainer> element) → void
assign element for key
inherited