Algorithm

interface Algorithm<T : ClusterItem?>

Logic for computing clusters

Inheritors

Functions

Link copied to clipboard
abstract fun addItem(item: T): Boolean
Adds an item to the algorithm
Link copied to clipboard
abstract fun addItems(items: Collection<T>): Boolean
Adds a collection of items to the algorithm
Link copied to clipboard
abstract fun clearItems()
Link copied to clipboard
abstract fun getClusters(zoom: Float): Set<out Cluster<T>>
Link copied to clipboard
abstract fun getItems(): Collection<T>
Link copied to clipboard
abstract fun lock()
Link copied to clipboard
abstract fun removeItem(item: T): Boolean
Removes an item from the algorithm
Link copied to clipboard
abstract fun removeItems(items: Collection<T>): Boolean
Removes a collection of items from the algorithm
Link copied to clipboard
abstract fun setMaxDistanceBetweenClusteredItems(maxDistance: Int)
Link copied to clipboard
abstract fun unlock()
Link copied to clipboard
abstract fun updateItem(item: T): Boolean
Updates the provided item in the algorithm