Interface IsEvent
-
- All Superinterfaces:
Key
- All Known Implementing Classes:
AnimationEventType
,DatasetSeletionEventType
,KeyboardEventType
,MouseEventType
,PointerEventType
,TouchEventType
public interface IsEvent extends Key
RepresentstThe events option defines the browser events that the chart, legend, tooltip or plugins should listen to.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static IsEvent
create(String event)
Returns a event instance by its string value.default boolean
is(String eventType)
Checks if the event type is equals to the event type passed as string.default boolean
is(NativeBaseEvent event)
Checks if the event type is equals to the event type passed in the event.default boolean
is(HasNativeEvent container)
Checks if the event type is equals to the event type passed in the event container.
-
-
-
Method Detail
-
create
static IsEvent create(String event)
Returns a event instance by its string value.- Parameters:
event
- string value to use- Returns:
- new event instance
-
is
default boolean is(String eventType)
Checks if the event type is equals to the event type passed as string.- Parameters:
eventType
- event type to be checked as string.- Returns:
true
if the event type is equals to the event type passed as string
-
is
default boolean is(NativeBaseEvent event)
Checks if the event type is equals to the event type passed in the event.- Parameters:
event
- event to be checked, by its type.- Returns:
true
if the event type is equals to the event type passed as event
-
is
default boolean is(HasNativeEvent container)
Checks if the event type is equals to the event type passed in the event container.- Parameters:
container
- event container to be checked, by its event type.- Returns:
true
if the event type is equals to the event type passed as event container
-
-