-
public interface Algorithm<T extends ClusterItem>Logic for computing clusters
-
-
Method Summary
Modifier and Type Method Description abstract booleanaddItem(T item)Adds an item to the algorithm abstract booleanaddItems(Collection<T> items)Adds a collection of items to the algorithm abstract voidclearItems()abstract booleanremoveItem(T item)Removes an item from the algorithm abstract booleanupdateItem(T item)Updates the provided item in the algorithm abstract booleanremoveItems(Collection<T> items)Removes a collection of items from the algorithm abstract Set<out Cluster<T>>getClusters(float zoom)abstract Collection<T>getItems()abstract voidsetMaxDistanceBetweenClusteredItems(int maxDistance)abstract intgetMaxDistanceBetweenClusteredItems()abstract voidlock()abstract voidunlock()-
-
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()
-
-
-
-