public enum InteractionMode extends Enum<InteractionMode> implements Key
Enum Constant and Description |
---|
dataset
Finds items in the same dataset.
|
index
Finds item at the same index.
|
label
Deprecated.
|
nearest
Gets the item that is nearest to the point.
The nearest item is determined based on the distance to the center of the chart item (point, bar). If 2 or more items are at the same distance, the one with the smallest area is used. |
point
Finds all of the items that intersect the point.
|
single
Deprecated.
|
x
Returns all items that would intersect based on the X coordinate of the position only.
Note that this only applies to cartesian charts |
y
Returns all items that would intersect based on the Y coordinate of the position.
Note that this only applies to cartesian charts. |
Modifier and Type | Method and Description |
---|---|
static InteractionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InteractionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InteractionMode point
public static final InteractionMode nearest
@Deprecated public static final InteractionMode label
@Deprecated public static final InteractionMode single
public static final InteractionMode index
public static final InteractionMode dataset
public static final InteractionMode x
public static final InteractionMode y
public static InteractionMode[] values()
for (InteractionMode c : InteractionMode.values()) System.out.println(c);
public static InteractionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null