Interface MapSelectionManager<T>
-
- Type Parameters:
T- Item Type.
- All Known Subinterfaces:
MapSelectionManager.EdgeSelectionManager,MapSelectionManager.NodeSelectionManager
- All Known Implementing Classes:
GoogleMapsEdgeSelectionManager,GoogleMapsNodeSelectionManager,OlEdgeSelectionManager,OlNodeSelectionManager
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 interfaceMapSelectionManager.EdgeSelectionManagerCollection of methods to manage the selection of the edges in the map.static interfaceMapSelectionManager.NodeSelectionManagerCollection 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 voiddeselect(T... items)Performs the necessary actions to deselect a item in the map.voiddeselectAll()Performs the necessary actions to deselect all the selected items in the map.TgetFirstSelectedItem()Gets the first selected item.List<T>getSelectedItems()Gets the selected items.voidselect(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.
-
-