Package org.pepstock.charba.client.items
Class TooltipModel
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.commons.AbstractReadOnlyPoint
- 
- org.pepstock.charba.client.items.TooltipModel
 
 
 
 
- 
- All Implemented Interfaces:
- IsPoint
 
 public final class TooltipModel extends AbstractReadOnlyPoint This object is passed by CHART.JS to the callback to manage tooltip custom callback.
 The tooltip label configuration is nested below the tooltip configuration using the callbacks key.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Constructor Description TooltipModel(CallbacksEnvelop<NativeObject> envelop)Creates the item using envelop with the native java script object which contains all properties.TooltipModel(ConfigurationEnvelop<NativeObject> envelop)Creates the item using envelop with the native java script object which contains all properties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAfterBody()Returns the list of lines after body section.List<String>getBeforeBody()Returns the list of lines before body section.List<TooltipBodyItem>getBody()Returns the list of items which belong to the tooltip body section.intgetCaretX()Returns the X location of the tooltip arrow.intgetCaretY()Returns the Y location of the tooltip arrow.List<TooltipItem>getDataPoints()Returns the list of tooltip items related to data points.List<String>getFooter()Returns the footer of the tooltip.intgetHeight()Returns the height of tooltip.List<TooltipLabelColor>getLabelColors()Returns the list of labels color of tooltip.List<TooltipLabelPointStyle>getLabelPointStyles()Returns the list of labels point styles of tooltip.doublegetOpacity()Returns the opacity of tooltip.List<TooltipLabelColor>getTextLabelColors()Returns the list of labels text color of tooltip.List<String>getTitle()Returns the title of the tooltip.intgetWidth()Returns the width of tooltip.TooltipAligngetXAlign()Returns the alignment of the tooltip caret in the X direction.TooltipAligngetYAlign()Returns the alignment of the tooltip caret in the Y direction.- 
Methods inherited from class org.pepstock.charba.client.commons.AbstractReadOnlyPointgetX, getY, toString
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.commons.IsPointisConsistent
 
- 
 
- 
- 
- 
Constructor Detail- 
TooltipModelpublic TooltipModel(ConfigurationEnvelop<NativeObject> envelop) Creates the item using envelop with the native java script object which contains all properties.- Parameters:
- envelop- envelop with the native java script object which contains all properties.
 
 - 
TooltipModelpublic TooltipModel(CallbacksEnvelop<NativeObject> envelop) Creates the item using envelop with the native java script object which contains all properties.- Parameters:
- envelop- envelop with the native java script object which contains all properties.
 
 
- 
 - 
Method Detail- 
getDataPointspublic List<TooltipItem> getDataPoints() Returns the list of tooltip items related to data points.- Returns:
- the list of tooltip items related to data points.
 
 - 
getXAlignpublic TooltipAlign getXAlign() Returns the alignment of the tooltip caret in the X direction.- Returns:
- the alignment of the tooltip caret in the X direction
 
 - 
getYAlignpublic TooltipAlign getYAlign() Returns the alignment of the tooltip caret in the Y direction.- Returns:
- the alignment of the tooltip caret in the Y direction
 
 - 
getWidthpublic int getWidth() Returns the width of tooltip.- Returns:
- the width of tooltip.
 
 - 
getHeightpublic int getHeight() Returns the height of tooltip.- Returns:
- the height of tooltip.
 
 - 
getCaretXpublic int getCaretX() Returns the X location of the tooltip arrow.- Returns:
- the X location of the tooltip arrow.
 
 - 
getCaretYpublic int getCaretY() Returns the Y location of the tooltip arrow.- Returns:
- the Y location of the tooltip arrow.
 
 - 
getBodypublic List<TooltipBodyItem> getBody() Returns the list of items which belong to the tooltip body section.- Returns:
- the list of items which belong to the tooltip body section.
 
 - 
getBeforeBodypublic List<String> getBeforeBody() Returns the list of lines before body section.- Returns:
- the list of lines before body section.
 
 - 
getAfterBodypublic List<String> getAfterBody() Returns the list of lines after body section.- Returns:
- the list of lines after body section.
 
 - 
getTitlepublic List<String> getTitle() Returns the title of the tooltip.- Returns:
- the title of the tooltip.
 
 - 
getFooterpublic List<String> getFooter() Returns the footer of the tooltip.- Returns:
- the footer of the tooltip.
 
 - 
getLabelColorspublic List<TooltipLabelColor> getLabelColors() Returns the list of labels color of tooltip.- Returns:
- the list of labels color of tooltip.
 
 - 
getLabelPointStylespublic List<TooltipLabelPointStyle> getLabelPointStyles() Returns the list of labels point styles of tooltip.- Returns:
- the list of labels point styles of tooltip.
 
 - 
getTextLabelColorspublic List<TooltipLabelColor> getTextLabelColors() Returns the list of labels text color of tooltip.- Returns:
- the list of labels text color of tooltip.
 
 - 
getOpacitypublic double getOpacity() Returns the opacity of tooltip.- Returns:
- the opacity of tooltip.
 
 
- 
 
-