-
public interface Algorithm<T extends ClusterItem>
Logic for computing clusters
-
-
Method Summary
Modifier and Type Method Description abstract boolean
addItem(T item)
Adds an item to the algorithm abstract boolean
addItems(Collection<T> items)
Adds a collection of items to the algorithm abstract void
clearItems()
abstract boolean
removeItem(T item)
Removes an item from the algorithm abstract boolean
updateItem(T item)
Updates the provided item in the algorithm abstract boolean
removeItems(Collection<T> items)
Removes a collection of items from the algorithm abstract Set<out Cluster<T>>
getClusters(float zoom)
abstract Collection<T>
getItems()
abstract void
setMaxDistanceBetweenClusteredItems(int maxDistance)
abstract int
getMaxDistanceBetweenClusteredItems()
abstract void
lock()
abstract void
unlock()
-
-
Method Detail
-
addItem
abstract boolean addItem(T item)
Adds an item to the algorithm
- Parameters:
item
- the item to be added
-
addItems
abstract boolean addItems(Collection<T> items)
Adds a collection of items to the algorithm
- Parameters:
items
- the items to be added
-
clearItems
abstract void clearItems()
-
removeItem
abstract boolean removeItem(T item)
Removes an item from the algorithm
- Parameters:
item
- the item to be removed
-
updateItem
abstract boolean updateItem(T item)
Updates the provided item in the algorithm
- Parameters:
item
- the item to be updated
-
removeItems
abstract boolean removeItems(Collection<T> items)
Removes a collection of items from the algorithm
- Parameters:
items
- the items to be removed
-
getClusters
abstract Set<out Cluster<T>> getClusters(float zoom)
-
getItems
abstract Collection<T> getItems()
-
setMaxDistanceBetweenClusteredItems
abstract void setMaxDistanceBetweenClusteredItems(int maxDistance)
-
getMaxDistanceBetweenClusteredItems
abstract int getMaxDistanceBetweenClusteredItems()
-
lock
abstract void lock()
-
unlock
abstract void unlock()
-
-
-
-