Class InteractionTarget
java.lang.Object
org.opensourcephysics.display3d.simple3d.InteractionTarget
- All Implemented Interfaces:
InteractionTarget
The simple3d implementation of InteractionTarget
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns the action command of this targetfinal boolean
Whether the target affects the top-level groupfinal boolean
Returns the enabled status of the targetfinal void
setActionCommand
(String command) Sets the action commmand for this targetfinal 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).final void
setEnabled
(boolean value) Enables/Disables the target
-
Method Details
-
setEnabled
public final void setEnabled(boolean value) Enables/Disables the target- Specified by:
setEnabled
in interfaceInteractionTarget
- Parameters:
value
- boolean
-
isEnabled
public final boolean isEnabled()Returns the enabled status of the target- Specified by:
isEnabled
in interfaceInteractionTarget
- Returns:
- boolean
-
getActionCommand
Returns the action command of this target- Specified by:
getActionCommand
in interfaceInteractionTarget
- Returns:
- String
-
setActionCommand
Sets the action commmand for this target- Specified by:
setActionCommand
in interfaceInteractionTarget
- Parameters:
command
- String
-
setAffectsGroup
public final 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). Default is false.- Specified by:
setAffectsGroup
in interfaceInteractionTarget
- Parameters:
value
- boolean- See Also:
-
getAffectsGroup
public final boolean getAffectsGroup()Whether the target affects the top-level group- Specified by:
getAffectsGroup
in interfaceInteractionTarget
- Returns:
- boolean
-