Interface MapSelectionManager<T>
-
- Type Parameters:
T
- Item Type.
- All Known Subinterfaces:
MapSelectionManager.EdgeSelectionManager
,MapSelectionManager.NodeSelectionManager
- All Known Implementing Classes:
GoogleMapsEdgeSelectionManager
,GoogleMapsNodeSelectionManager
public interface MapSelectionManager<T>
Collection of methods to manage the selection in the map.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MapSelectionManager.EdgeSelectionManager
Collection of methods to manage the selection of the edges in the map.static interface
MapSelectionManager.NodeSelectionManager
Collection of methods to manage the selection of the nodes in the map.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deselect(T... items)
Performs the necessary actions to deselect a item in the map.void
deselectAll()
Performs the necessary actions to deselect all the selected items in the map.T
getFirstSelectedItem()
Gets the first selected item.List<T>
getSelectedItems()
Gets the selected items.void
select(T... items)
Performs the necessary actions to select a item in the map.
-
-
-
Method Detail
-
select
void select(T... items)
Performs the necessary actions to select a item in the map. For example change the background color of the node/edge labels.- Parameters:
items
- Items to select.
-
deselect
void deselect(T... items)
Performs the necessary actions to deselect a item in the map. For example change the background color of the node/edge labels.- Parameters:
items
- Items to deselect.
-
deselectAll
void deselectAll()
Performs the necessary actions to deselect all the selected items in the map. For example change the background color of the selected node/edge labels.
-
getFirstSelectedItem
T getFirstSelectedItem()
Gets the first selected item.- Returns:
- The first selected item.
-
-