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.
|
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.
|
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 |
---|---|
String |
value()
Returns the name value of property
|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final InteractionMode POINT
public static final InteractionMode NEAREST
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