Interface InteractionTarget

All Known Implementing Classes:
InteractionTarget

public interface InteractionTarget
The basic interface for an active target in an InteractionSource
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the action command of this target
    boolean
    Whether the target affects the top-level group of the element
    boolean
    Returns the enabled status of the target
    void
    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 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

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

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