public final class TriggerBehaviourBindings extends Object
BehaviourMap
s and InputTriggerMap
s, which
are chained to a concatenated
InputTriggerMap
and a concatenated
BehaviourMap
. Maps can be added and will be chained in reverse order of
addition, that is, the last added map overrides all previous ones. For
InputTriggerMap
s it is possible to block maps that were added
earlier.Constructor and Description |
---|
TriggerBehaviourBindings()
Create chained maps just consisting of empty roots.
|
Modifier and Type | Method and Description |
---|---|
void |
addBehaviourMap(String id,
BehaviourMap behaviourMap)
Add as
BehaviourMap with the specified id to the end of the list
(overrides maps that were added earlier). |
void |
addInputTriggerMap(String id,
InputTriggerMap inputTriggerMap,
Collection<String> idsToBlock)
Add as
InputTriggerMap with the specified id to the end of the
list (overrides maps that were added earlier). |
void |
addInputTriggerMap(String id,
InputTriggerMap inputTriggerMap,
String... idsToBlock)
Add as
InputTriggerMap with the specified id to the end of the
list (overrides maps that were added earlier). |
BehaviourMap |
getConcatenatedBehaviourMap()
Get the chained
BehaviourMap . |
InputTriggerMap |
getConcatenatedInputTriggerMap()
Get the chained
InputTriggerMap . |
void |
removeBehaviourMap(String id)
Remove the
BehaviourMap with the given id from the list. |
void |
removeInputTriggerMap(String id)
Remove the
InputTriggerMap with the given id from the list. |
public TriggerBehaviourBindings()
public void addBehaviourMap(String id, BehaviourMap behaviourMap)
BehaviourMap
with the specified id to the end of the list
(overrides maps that were added earlier). If the specified id already
exists in the list, remove the corresponding earlier BehaviourMap
.public void removeBehaviourMap(String id)
BehaviourMap
with the given id from the list.public void addInputTriggerMap(String id, InputTriggerMap inputTriggerMap, String... idsToBlock)
InputTriggerMap
with the specified id to the end of the
list (overrides maps that were added earlier). If the specified id
already exists in the list, remove the corresponding earlier
InputTriggerMap
.
If idsToBlock
are given, InputTriggerMap
s with these ids
earlier in the chain that should be disabled. The special id "all" blocks
all earlier InputTriggerMap
s.
id
- inputTriggerMap
- idsToBlock
- ids of InputTriggerMap
s earlier in the chain that
should be disabled.public void addInputTriggerMap(String id, InputTriggerMap inputTriggerMap, Collection<String> idsToBlock)
InputTriggerMap
with the specified id to the end of the
list (overrides maps that were added earlier). If the specified id
already exists in the list, remove the corresponding earlier
InputTriggerMap
.
If idsToBlock
are given, InputTriggerMap
s with these ids
earlier in the chain that should be disabled. The special id "all" blocks
all earlier InputTriggerMap
s.
id
- inputTriggerMap
- idsToBlock
- ids of InputTriggerMap
s earlier in the chain that
should be disabled.public void removeInputTriggerMap(String id)
InputTriggerMap
with the given id from the list.public InputTriggerMap getConcatenatedInputTriggerMap()
InputTriggerMap
. Note, that this will remain the
same instance when maps are added or removed.public BehaviourMap getConcatenatedBehaviourMap()
BehaviourMap
. Note, that this will remain the
same instance when maps are added or removed.Copyright © 2015–2022 SciJava. All rights reserved.