public class Interaction extends AbstractModel<P,D> implements IsDefaultInteraction
| Modifier and Type | Method and Description |
|---|---|
InteractionAxis |
getAxis()
Returns to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
|
InteractionMode |
getMode()
Returns which elements appear in the tooltip.
|
boolean |
isIntersect()
if
true, the hover mode only applies when the mouse position intersects an item on the chart. |
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. |
void |
setIntersect(boolean intersect)
if
true, the hover mode only applies when the mouse position intersects an item on the chart. |
void |
setMode(InteractionMode mode)
Sets which elements appear in the tooltip.
|
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMode, isIntersectpublic final void setAxis(InteractionAxis axis)
axis - define which directions are used in calculating distances.public final InteractionAxis getAxis()
getAxis in interface IsDefaultInteractionpublic final void setMode(InteractionMode mode)
mode - which elements appear in the tooltip.public final InteractionMode getMode()
public final void setIntersect(boolean intersect)
true, the hover mode only applies when the mouse position intersects an item on the chart.intersect - if true, the hover mode only applies when the mouse position intersects an item on the chart.public final boolean isIntersect()
true, the hover mode only applies when the mouse position intersects an item on the chart.true, the hover mode only applies when the mouse position intersects an item on the chart.