org.opensourcephysics.display3d.core.interaction
Interface InteractionTarget

All Known Implementing Classes:
InteractionTarget

public interface InteractionTarget

The basic interface for an active target in an InteractionSource


Method Summary
 java.lang.String getActionCommand()
          Returns the action command of this target
 boolean getAffectsGroup()
          Whether the target affects the top-level group of the element
 boolean isEnabled()
          Returns the enabled status of the target
 void setActionCommand(java.lang.String command)
          Sets the action commmand for this target
 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).
 void setEnabled(boolean value)
          Enables/Disables the target
 

Method Detail

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

java.lang.String getActionCommand()
Returns the action command of this target

Returns:
String

setActionCommand

void setActionCommand(java.lang.String command)
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 to true, 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 is false.

Parameters:
value - boolean
See Also:
Element

getAffectsGroup

boolean getAffectsGroup()
Whether the target affects the top-level group of the element

Returns:
boolean