Class Interaction

    • Method Detail

      • setAxis

        public final void setAxis​(InteractionAxis axis)
        Sets which directions are used in calculating distances.
        Parameters:
        axis - define which directions are used in calculating distances.
      • getAxis

        public final InteractionAxis getAxis()
        Returns which directions are used in calculating distances.
        Specified by:
        getAxis in interface IsDefaultInteraction
        Returns:
        define which directions are used in calculating distances.
      • setIncludeInvisible

        public final void setIncludeInvisible​(boolean includeInvisible)
        If true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
        Parameters:
        includeInvisible - if true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
      • isIncludeInvisible

        public final boolean isIncludeInvisible()
        If true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
        Specified by:
        isIncludeInvisible in interface IsDefaultInteraction
        Returns:
        if true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
      • setMode

        public final void setMode​(String name)
        Sets which elements appear in the interaction.
        Parameters:
        name - which elements appear in the interaction.
      • setMode

        public final void setMode​(IsInteractionMode mode)
        Sets which elements appear in the interaction.
        Parameters:
        mode - which elements appear in the interaction.
      • getMode

        public final IsInteractionMode getMode()
        Returns which elements appear in the interaction.
        Returns:
        which elements appear in the interaction.
      • setIntersect

        public final void setIntersect​(boolean intersect)
        if true, the only applies when the mouse position intersects an item on the chart.
        Parameters:
        intersect - if true, the mode only applies when the mouse position intersects an item on the chart.
      • isIntersect

        public final boolean isIntersect()
        if true, the mode only applies when the mouse position intersects an item on the chart.
        Returns:
        if true, the mode only applies when the mouse position intersects an item on the chart.