|
||||||||||
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.ChartClickEvent
public class ChartClickEvent
Provides access to the raw information provided by Highcharts when a user clicks on the
plot area of the chart, including the axis values of the click. This class should
not be instantiated directly, but instead you should create a ChartClickEventHandler
and
register it via the BaseChart.setClickEventHandler(ChartClickEventHandler)
method in order to access click events.
Constructor Summary | |
---|---|
ChartClickEvent(com.google.gwt.core.client.JavaScriptObject event)
This constructor is intended for internal use only. |
Method Summary | |
---|---|
double |
getXAxisValue()
Return the value of the first X axis at the click event location. |
double |
getXAxisValue(int axisIndex)
Return the value of the requested X axis at the click event location. |
long |
getXAxisValueAsLong()
Return the value of the first X axis at the click event location, converting the value to a long value first. |
long |
getXAxisValueAsLong(int axisIndex)
Return the value of the requested X axis at the click event location, converting the value to a long before returning it. |
double |
getYAxisValue()
Return the value of the first Y axis at the click event location. |
double |
getYAxisValue(int axisIndex)
Return the value of the requested Y axis at the click event location. |
long |
getYAxisValueAsLong()
Return the value of the first Y axis at the click event location, converting the value to a long value first. |
long |
getYAxisValueAsLong(int axisIndex)
Return the value of the requested Y axis at the click event location, converting the value to a long before returning it. |
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 ChartClickEvent(com.google.gwt.core.client.JavaScriptObject event)
ChartClickEventHandler
.
event
- The native javascript object containing the details of the original event that was fired.Method Detail |
---|
public double getXAxisValue()
getXAxisValue(int)
method if you need the value of a different X axis.
public long getXAxisValueAsLong()
getXAxisValueAsLong(int)
method
if you need the value of a different X axis, or the getXAxisValue()
method if you need a floating point value instead.
public double getXAxisValue(int axisIndex)
axisIndex
- The index (zero based) of the X axis for which you'd like
to retrieve the value of the click event.
public long getXAxisValueAsLong(int axisIndex)
getXAxisValue(int)
method if you need the value
as a floating point number instead.
axisIndex
- The index (zero based) of the X axis for which you'd like
to retrieve the value of the click event.
public double getYAxisValue()
getYAxisValue(int)
method if you need the value of a different Y axis.
public long getYAxisValueAsLong()
getYAxisValueAsLong(int)
method
if you need the value of a different Y axis, or the getYAxisValue()
method if you need a floating point value instead.
public double getYAxisValue(int axisIndex)
axisIndex
- The index (zero based) of the Y axis for which you'd like
to retrieve the value of the click event.
public long getYAxisValueAsLong(int axisIndex)
getYAxisValue(int)
method if you need the value
as a floating point number instead.
axisIndex
- The index (zero based) of the Y axis for which you'd like
to retrieve the value of the click event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |