org.opensourcephysics.display3d.simple3d
Class InteractionTarget

java.lang.Object
  extended by org.opensourcephysics.display3d.simple3d.InteractionTarget
All Implemented Interfaces:
InteractionTarget

public class InteractionTarget
extends java.lang.Object
implements InteractionTarget

The simple3d implementation of InteractionTarget


Method Summary
 java.lang.String getActionCommand()
          Returns the action command of this target
 boolean getAffectsGroup()
          Whether the target affects the top-level group
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setEnabled

public final void setEnabled(boolean value)
Enables/Disables the target

Specified by:
setEnabled in interface InteractionTarget
Parameters:
value - boolean

isEnabled

public final boolean isEnabled()
Returns the enabled status of the target

Specified by:
isEnabled in interface InteractionTarget
Returns:
boolean

getActionCommand

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

Specified by:
getActionCommand in interface InteractionTarget
Returns:
String

setActionCommand

public final void setActionCommand(java.lang.String command)
Sets the action commmand for this target

Specified by:
setActionCommand in interface InteractionTarget
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 interface InteractionTarget
Parameters:
value - boolean
See Also:
Element

getAffectsGroup

public final boolean getAffectsGroup()
Whether the target affects the top-level group

Specified by:
getAffectsGroup in interface InteractionTarget
Returns:
boolean