public final class TooltipModel extends JavaScriptObjectContainer
TooltipCustomCallback
Constructor and Description |
---|
TooltipModel(GenericJavaScriptObject javaScriptObject)
Wraps the CHART.JS java script object.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAfterBody()
Returns the list of lines after body section.
|
IsColor |
getBackgroundColor()
Returns the background color of tooltip.
|
java.lang.String |
getBackgroundColorAsString()
Returns the background color of tooltip.
|
java.util.List<java.lang.String> |
getBeforeBody()
Returns the list of lines before body section.
|
java.util.List<TooltipBodyItem> |
getBody()
Returns the list of items which belong to the tooltip body section.
|
TextAlign |
getBodyAlign()
Returns the alignment of the tooltip body section.
|
IsColor |
getBodyFontColor()
Returns the color of the tooltip body section.
|
java.lang.String |
getBodyFontColorAsString()
Returns the color of the tooltip body section.
|
java.lang.String |
getBodyFontFamily()
Returns the font family of the tooltip body section.
|
int |
getBodyFontSize()
Returns the font size of the tooltip body section.
|
FontStyle |
getBodyFontStyle()
Returns the font style of the tooltip body section.
|
int |
getBodySpacing()
Returns the spacing of the tooltip body section.
|
int |
getCaretSize()
Returns the size, in px, of the tooltip arrow of footer section.
|
int |
getCaretX()
Returns the X location of the tooltip arrow.
|
int |
getCaretY()
Returns the Y location of the tooltip arrow.
|
double |
getCornerRadius()
Returns the radius of tooltip corner curves of footer section.
|
java.util.List<TooltipItem> |
getDataPoints()
Returns the list of tooltip items related to data points.
|
java.lang.Boolean |
getDisplayColors()
Returns the display of colors of tooltip.
|
java.util.List<java.lang.String> |
getFooter()
Returns the footer of the tooltip.
|
TextAlign |
getFooterAlign()
Returns the alignment of the tooltip footer section.
|
IsColor |
getFooterFontColor()
Returns the color of the tooltip footer section.
|
java.lang.String |
getFooterFontColorAsString()
Returns the color of the tooltip footer section.
|
java.lang.String |
getFooterFontFamily()
Returns the font family of the tooltip footer section.
|
int |
getFooterFontSize()
Returns the font size of the tooltip footer section.
|
FontStyle |
getFooterFontStyle()
Returns the font style of the tooltip footer section.
|
int |
getFooterMarginTop()
Returns the margin top of the tooltip footer section.
|
int |
getFooterSpacing()
Returns the spacing of the tooltip footer section.
|
int |
getHeight()
Returns the height of tooltip.
|
java.util.List<TooltipLabelColor> |
getLabelColors()
Returns the list of labels color of tooltip.
|
IsColor |
getLegendColorBackground()
Returns the legend color of tooltips.
|
java.lang.String |
getLegendColorBackgroundAsString()
Returns the legend color of tooltips.
|
double |
getOpacity()
Returns the opacity of tooltip.
|
java.util.List<java.lang.String> |
getTitle()
Returns the title of the tooltip.
|
TextAlign |
getTitleAlign()
Returns the alignment of the tooltip title section.
|
IsColor |
getTitleFontColor()
Returns the color of the tooltip title section.
|
java.lang.String |
getTitleFontColorAsString()
Returns the color of the tooltip title section.
|
java.lang.String |
getTitleFontFamily()
Returns the font family of the tooltip title section.
|
int |
getTitleFontSize()
Returns the font size of the tooltip title section.
|
FontStyle |
getTitleFontStyle()
Returns the font style of the tooltip title section.
|
int |
getTitleMarginBottom()
Returns the bottom margin of the tooltip title section.
|
int |
getTitleSpacing()
Returns the spacing of the tooltip title section.
|
int |
getWidth()
Returns the width of tooltip.
|
int |
getX()
Returns the X location of tooltip.
|
java.lang.String |
getXAlign()
Returns the X align location.
|
int |
getXPadding()
Returns the X padding location.
|
int |
getY()
Returns the Y location of tooltip.
|
java.lang.String |
getYAlign()
Returns the Y align location.
|
int |
getYPadding()
Returns the Y padding location.
|
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 TooltipModel(GenericJavaScriptObject javaScriptObject)
javaScriptObject
- CHART.JS java script objectpublic java.util.List<TooltipItem> getDataPoints()
TooltipItem
public int getXPadding()
public int getYPadding()
public java.lang.String getXAlign()
UndefinedValues.STRING
.public java.lang.String getYAlign()
UndefinedValues.STRING
.public int getX()
UndefinedValues.INTEGER
.public int getY()
UndefinedValues.INTEGER
.public int getWidth()
UndefinedValues.INTEGER
.public int getHeight()
UndefinedValues.INTEGER
.public int getCaretX()
UndefinedValues.INTEGER
.public int getCaretY()
UndefinedValues.INTEGER
.public java.util.List<TooltipBodyItem> getBody()
TooltipBodyItem
public java.util.List<java.lang.String> getBeforeBody()
public java.util.List<java.lang.String> getAfterBody()
public java.lang.String getBodyFontColorAsString()
public IsColor getBodyFontColor()
public java.lang.String getBodyFontFamily()
public FontStyle getBodyFontStyle()
FontStyle
public TextAlign getBodyAlign()
public int getBodyFontSize()
public int getBodySpacing()
public java.util.List<java.lang.String> getTitle()
public java.lang.String getTitleFontColorAsString()
public IsColor getTitleFontColor()
public java.lang.String getTitleFontFamily()
public FontStyle getTitleFontStyle()
FontStyle
public int getTitleFontSize()
public TextAlign getTitleAlign()
public int getTitleSpacing()
public int getTitleMarginBottom()
public java.util.List<java.lang.String> getFooter()
public java.lang.String getFooterFontColorAsString()
public IsColor getFooterFontColor()
public java.lang.String getFooterFontFamily()
public FontStyle getFooterFontStyle()
FontStyle
public int getFooterFontSize()
public TextAlign getFooterAlign()
public int getFooterSpacing()
public int getFooterMarginTop()
public int getCaretSize()
public double getCornerRadius()
public java.lang.String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public java.util.List<TooltipLabelColor> getLabelColors()
TooltipLabelColor
public double getOpacity()
UndefinedValues.DOUBLE
.public java.lang.String getLegendColorBackgroundAsString()
public IsColor getLegendColorBackground()
public java.lang.Boolean getDisplayColors()
UndefinedValues.BOOLEAN
.