Class Interaction

    • Method Detail

      • setAxis

        public final void setAxis​(InteractionAxis axis)
        Sets to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
        Defaults to 'x' for index mode and 'xy' in dataset and nearest modes.
        Parameters:
        axis - define which directions are used in calculating distances.
      • getAxis

        public final InteractionAxis getAxis()
        Returns to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
        Specified by:
        getAxis in interface IsDefaultInteraction
        Returns:
        define which directions are used in calculating distances.
      • setMode

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

        public final InteractionMode getMode()
        Returns which elements appear in the tooltip.
        Returns:
        which elements appear in the tooltip.
      • setIntersect

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

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