|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.moxieapps.gwt.highcharts.client.events.MouseEvent org.moxieapps.gwt.highcharts.client.events.SeriesEvent org.moxieapps.gwt.highcharts.client.events.SeriesClickEvent
public class SeriesClickEvent
Provides access to the raw information provided by Highcharts when a user clicks on a series
in the chart, including the nearest point to the click. This class should
not be instantiated directly, but instead you should create a SeriesClickEventHandler
and
register it via the SeriesPlotOptions.setSeriesClickEventHandler(SeriesClickEventHandler)
method in order to access click events.
Constructor Summary | |
---|---|
SeriesClickEvent(com.google.gwt.core.client.JavaScriptObject event,
com.google.gwt.core.client.JavaScriptObject series)
This constructor is intended for internal use only. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.moxieapps.gwt.highcharts.client.events.SeriesEvent |
---|
getSeriesId, getSeriesName |
Methods inherited from class org.moxieapps.gwt.highcharts.client.events.MouseEvent |
---|
getClientX, getClientY, getNativeButton, getNativeEvent, getRelativeX, getRelativeY, getScreenX, getScreenY, isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public Point getNearestPoint()
public String getNearestPointName()
public double getNearestXAsDouble()
public long getNearestXAsLong()
public String getNearestXAsString()
public double getNearestYAsDouble()
public long getNearestYAsLong()
public String getNearestYAsString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |