public class SeriesClickEvent extends SeriesEvent
SeriesClickEventHandler and
register it via the SeriesPlotOptions.setSeriesClickEventHandler(SeriesClickEventHandler)
method in order to access click events.| Constructor and Description |
|---|
SeriesClickEvent(com.google.gwt.core.client.JavaScriptObject event,
com.google.gwt.core.client.JavaScriptObject series)
This constructor is intended for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
getNearestPoint()
Create a new GWT point instance that is connected to the Highcharts JS point instance associated
with the nearest point to the click (e.g.
|
String |
getNearestPointName()
Return the name of the point nearest to the click (e.g.
|
double |
getNearestXAsDouble()
Return the x value of the nearest point as a double.
|
long |
getNearestXAsLong()
Return the x value of the nearest point as a long.
|
String |
getNearestXAsString()
Return the x value of the nearest point as a string.
|
double |
getNearestYAsDouble()
Return the y value of the nearest point as a double.
|
long |
getNearestYAsLong()
Return the y value of the nearest point as a long.
|
String |
getNearestYAsString()
Return the y value of the nearest point as a string.
|
getSeriesId, getSeriesNamegetClientX, getClientY, getNativeButton, getNativeEvent, getRelativeX, getRelativeY, getScreenX, getScreenY, isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDownpublic SeriesClickEvent(com.google.gwt.core.client.JavaScriptObject event,
com.google.gwt.core.client.JavaScriptObject series)
SeriesClickEventHandler.event - The native javascript object containing the details of the original event that was fired.series - The native javascript object that represents the series instance that the event was triggered on.public Point getNearestPoint()
public String getNearestPointName()
public double getNearestXAsDouble()
public long getNearestXAsLong()
public String getNearestXAsString()
public double getNearestYAsDouble()
public long getNearestYAsLong()
public String getNearestYAsString()
Copyright © 2015. All Rights Reserved.