Enum Event
- java.lang.Object
-
- java.lang.Enum<Event>
-
- org.pepstock.charba.client.datalabels.enums.Event
-
- All Implemented Interfaces:
Serializable
,Comparable<Event>
,Key
public enum Event extends Enum<Event> implements Key
ThisDataLabelsPlugin.ID
plugin currently supports the below label events.
Charba events that need to be enabled in order to get the associated label event working. Note that by default Charba enables "mousemove", "mouseout", "click", meaning that label events work out-of-the-box.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic Event
valueOf(String name)
Returns the enum constant of this type with the specified name.static Event[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTER
public static final Event ENTER
The mouse is moved over a label. CharbaMouseEventType.MOUSE_MOVE
must be enabled.
-
LEAVE
public static final Event LEAVE
The mouse is moved out of a label. CharbaMouseEventType.MOUSE_MOVE
must be enabled.
-
CLICK
public static final Event CLICK
The mouse's primary button is pressed and released on a label. CharbaMouseEventType.CLICK
must be enabled.
-
-
Method Detail
-
values
public static Event[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Event c : Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-