Class InteractionTarget

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

public class InteractionTarget extends Object implements InteractionTarget
The simple3d implementation of InteractionTarget
  • Method Details

    • 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 String getActionCommand()
      Returns the action command of this target
      Specified by:
      getActionCommand in interface InteractionTarget
      Returns:
      String
    • setActionCommand

      public final void setActionCommand(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:
    • getAffectsGroup

      public final boolean getAffectsGroup()
      Whether the target affects the top-level group
      Specified by:
      getAffectsGroup in interface InteractionTarget
      Returns:
      boolean