public interface Algorithm<T extends ClusterItem>
Modifier and Type | Method and Description |
---|---|
boolean |
addItem(T item)
Adds an item to the algorithm
|
boolean |
addItems(java.util.Collection<T> items)
Adds a collection of items to the algorithm
|
void |
clearItems() |
java.util.Set<? extends Cluster<T>> |
getClusters(float zoom) |
java.util.Collection<T> |
getItems() |
int |
getMaxDistanceBetweenClusteredItems() |
void |
lock() |
boolean |
removeItem(T item)
Removes an item from the algorithm
|
boolean |
removeItems(java.util.Collection<T> items)
Removes a collection of items from the algorithm
|
void |
setMaxDistanceBetweenClusteredItems(int maxDistance) |
void |
unlock() |
boolean |
updateItem(T item)
Updates the provided item in the algorithm
|
boolean addItem(T item)
item
- the item to be addedboolean addItems(java.util.Collection<T> items)
items
- the items to be addedvoid clearItems()
boolean removeItem(T item)
item
- the item to be removedboolean updateItem(T item)
item
- the item to be updatedboolean removeItems(java.util.Collection<T> items)
items
- the items to be removedjava.util.Collection<T> getItems()
void setMaxDistanceBetweenClusteredItems(int maxDistance)
int getMaxDistanceBetweenClusteredItems()
void lock()
void unlock()