public class ChartClickEvent extends MouseEvent
ChartClickEventHandler and
register it via the BaseChart.setClickEventHandler(ChartClickEventHandler)
method in order to access click events.| Constructor and Description |
|---|
ChartClickEvent(com.google.gwt.core.client.JavaScriptObject event)
This constructor is intended for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getClientX, getClientY, getNativeButton, getNativeEvent, getRelativeX, getRelativeY, getScreenX, getScreenY, isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDownpublic ChartClickEvent(com.google.gwt.core.client.JavaScriptObject event)
ChartClickEventHandler.event - The native javascript object containing the details of the original event that was fired.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.Copyright © 2015. All Rights Reserved.