public final class TooltipItem extends JavaScriptObjectContainer
TooltipLabelCallback
,
TooltipBodyCallback
,
TooltipItemSortHandler
,
TooltipFilterHandler
,
TooltipFooterCallback
,
TooltipTitleCallback
Constructor and Description |
---|
TooltipItem(GenericJavaScriptObject javaScriptObject)
Wraps the CHART.JS java script object.
|
Modifier and Type | Method and Description |
---|---|
int |
getDatasetIndex()
Returns the dataset index of the chart
|
int |
getIndex()
Returns the index of the data inside the dataset.
|
int |
getX()
Returns the X location of tooltip item.
|
java.lang.String |
getXLabel()
Returns the X location of label.
|
int |
getY()
Returns the Y location of tooltip item.
|
java.lang.String |
getYLabel()
Returns the Y location of label.
|
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public TooltipItem(GenericJavaScriptObject javaScriptObject)
javaScriptObject
- CHART.JS java script objectpublic java.lang.String getXLabel()
UndefinedValues.STRING
.public java.lang.String getYLabel()
UndefinedValues.STRING
.public int getDatasetIndex()
UndefinedValues.INTEGER
.Data.getDatasets()
public int getIndex()
UndefinedValues.INTEGER
.Dataset.getData()
,
Data.getLabels()
public int getX()
UndefinedValues.INTEGER
.public int getY()
UndefinedValues.INTEGER
.