public final class AxisClickEvent extends AbstractEvent
| Constructor and Description |
|---|
AxisClickEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis,
ScaleValueItem value)
Creates the event with axis related to the click
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
Axis |
getAxis()
Returns the axis configuration instance if exists.
|
ScaleItem |
getItem()
Returns the scale item related to the action
|
ScaleValueItem |
getValue()
Returns the scale value related to the click, or
null if not consistent. |
getChart, getNativeEvent, getTypepublic static final EventType TYPE
public AxisClickEvent(BaseNativeEvent nativeEvent, ScaleItem item, Axis axis, ScaleValueItem value)
nativeEvent - native event of this custom eventitem - scale item related to the clickaxis - axis configuration instancevalue - value instance selected on axispublic ScaleValueItem getValue()
null if not consistent.null if not consistentprotected void dispatch(EventHandler handler)
Eventpublic final ScaleItem getItem()
public final Axis getAxis()
null.null if no axis configuration has been provided to chart