public class WrappedInputTriggerMap extends InputTriggerMap
InputTriggerMap that can have its own parent.
The wrapped InputTriggerMap should not have a parent!?| Constructor and Description |
|---|
WrappedInputTriggerMap(InputTriggerMap inputTriggerMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all bindings from this map.
|
Set<String> |
get(InputTrigger inputTrigger)
Get the set of all bindings for
inputTrigger defined in this map
and its parents. |
Map<InputTrigger,Set<String>> |
getAllBindings()
Get all bindings defined in this map and its parents.
|
InputTriggerMap |
getParent()
Gets this
InputTriggerMap's parent. |
int |
modCount() |
void |
put(InputTrigger inputTrigger,
String behaviourKey)
Adds a binding for
inputTrigger to behaviourKey. |
void |
remove(InputTrigger inputTrigger,
String behaviourKey)
Remove the specific binding from
inputTrigger to behaviourKey from this map. |
void |
removeAll(InputTrigger inputTrigger)
Remove all bindings for
inputTrigger from this map. |
void |
setParent(InputTriggerMap map)
Sets this
InputTriggerMap's parent. |
getBindingspublic WrappedInputTriggerMap(InputTriggerMap inputTriggerMap)
public void setParent(InputTriggerMap map)
InputTriggerMapInputTriggerMap's parent.setParent in class InputTriggerMapmap - the map that is the parent of this onepublic InputTriggerMap getParent()
InputTriggerMapInputTriggerMap's parent.getParent in class InputTriggerMapnull if
this map has no parentpublic void put(InputTrigger inputTrigger, String behaviourKey)
InputTriggerMapinputTrigger to behaviourKey.put in class InputTriggerMappublic Set<String> get(InputTrigger inputTrigger)
InputTriggerMapinputTrigger defined in this map
and its parents.get in class InputTriggerMapinputTrigger.public void remove(InputTrigger inputTrigger, String behaviourKey)
InputTriggerMapinputTrigger to behaviourKey from this map.remove in class InputTriggerMappublic void removeAll(InputTrigger inputTrigger)
InputTriggerMapinputTrigger from this map.removeAll in class InputTriggerMappublic void clear()
InputTriggerMapclear in class InputTriggerMappublic Map<InputTrigger,Set<String>> getAllBindings()
InputTriggerMapInputTriggerMap, i.e.,
it will not reflect changes to the InputTriggerMap.
This differs from getBindings() in that this method includes the
bindings defined in the parent.
getAllBindings in class InputTriggerMappublic int modCount()
modCount in class InputTriggerMapCopyright © 2015–2022 SciJava. All rights reserved.