Interface InteractionTarget
- All Known Implementing Classes:
InteractionTarget
public interface InteractionTarget
The basic interface for an active target in an InteractionSource
-
Method Summary
Modifier and TypeMethodDescriptionReturns the action command of this targetboolean
Whether the target affects the top-level group of the elementboolean
Returns the enabled status of the targetvoid
setActionCommand
(String command) Sets the action commmand for this targetvoid
setAffectsGroup
(boolean value) Whether the interaction with the target affects the top-level group of the element that contains it (instead of only affecting the element).void
setEnabled
(boolean value) Enables/Disables the target
-
Method Details
-
setEnabled
void setEnabled(boolean value) Enables/Disables the target- Parameters:
value
- boolean
-
isEnabled
boolean isEnabled()Returns the enabled status of the target- Returns:
- boolean
-
getActionCommand
String getActionCommand()Returns the action command of this target- Returns:
- String
-
setActionCommand
Sets the action commmand for this target- Parameters:
command
- String
-
setAffectsGroup
void setAffectsGroup(boolean value) Whether the interaction with the target affects the top-level group of the element that contains it (instead of only affecting the element). So, for instance, if the target allows to move the element and this flag is set totrue
, trying to move the element will move the whole group to which the element belongs. This flag only makes sense for objects of the Element class (which can belong to a Group). Default value of this flag isfalse
.- Parameters:
value
- boolean- See Also:
-
getAffectsGroup
boolean getAffectsGroup()Whether the target affects the top-level group of the element- Returns:
- boolean
-