public interface ClickEvent extends Serializable
Modifier and Type | Method and Description |
---|---|
default int |
getAbsoluteX() |
default int |
getAbsoluteY() |
default MouseEventDetails.MouseButton |
getButton()
Gets the
MouseEventDetails.MouseButton of the click event. |
MouseEventDetails |
getMouseDetails()
Gets the mouse click details
|
default double |
getxAxisValue()
Gets the x axis value of the clicked point.
|
default double |
getyAxisValue()
Gets the y axis value of the clicked point.
|
default boolean |
isAltKey()
Checks if the Alt key was down when the mouse event took place.
|
default boolean |
isCtrlKey()
Checks if the Ctrl key was down when the mouse event took place.
|
default boolean |
isMetaKey()
Checks if the Meta key was down when the mouse event took place.
|
default boolean |
isShiftKey()
Checks if the Shift key was down when the mouse event took place.
|
MouseEventDetails getMouseDetails()
default double getxAxisValue()
Note, that if the axis type is Date, the value is "unix timestamp" which
is shifted to UTF time zone that is used by the client side
implementation. If you have used Date object as value, you most likely
want to pass the value thru Util.toServerDate(double)
method
before actually using the value.
Legend items are outside of the plot area and legend item click events have no significant xAxisValue.
default double getyAxisValue()
Legend items are outside of the plot area and legend item click events have no significant yAxisValue.
default int getAbsoluteX()
default int getAbsoluteY()
default MouseEventDetails.MouseButton getButton()
MouseEventDetails.MouseButton
of the click event.
Note that the charting library only allows MouseButton.LEFT clicks in most cases.
MouseEventDetails.MouseButton
of the click event.default boolean isAltKey()
default boolean isCtrlKey()
default boolean isMetaKey()
default boolean isShiftKey()
Copyright © 2022. All rights reserved.