public class Tooltip extends Object implements Serializable
Constructor and Description |
---|
Tooltip() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the options of Tooltip
|
String |
getBackgroundColor()
Gets the backgroundColor
|
String |
getBodyFontColor()
Gets the bodyFontColor
|
String |
getBodyFontFamily()
Gets the bodyFontFamily
|
Number |
getBodyFontSize()
Gets the bodyFontSize
|
String |
getBodyFontStyle()
Gets the bodyFontStyle
|
Number |
getBodySpacing()
Gets the bodySpacing
|
String |
getBorderColor()
Gets the borderColor
|
Number |
getBorderWidth()
Gets the borderWidth
|
Number |
getCaretPadding()
Gets the caretPadding
|
Number |
getCaretSize()
Gets the caretSize
|
Number |
getCornerRadius()
Gets the cornerRadius
|
String |
getFooterFontColor()
Gets the footerFontColor
|
String |
getFooterFontFamily()
Gets the footerFontFamily
|
Number |
getFooterFontSize()
Gets the footerFontSize
|
String |
getFooterFontStyle()
Gets the footerFontStyle
|
Number |
getFooterMarginTop()
Gets the footerMarginTop
|
Number |
getFooterSpacing()
Gets the footerSpacing
|
String |
getMode()
Gets the mode
|
String |
getMultiKeyBackground()
Gets the multiKeyBackground
|
String |
getPosition()
Gets the position
|
String |
getTextDirection()
Text Direction 'ltr' or 'rtl' regardless of the css specified on the canvas.
|
String |
getTitleFontColor()
Gets the titleFontColor
|
String |
getTitleFontFamily()
Gets the titleFontFamily
|
Number |
getTitleFontSize()
Gets the titleFontSize
|
String |
getTitleFontStyle()
Gets the titleFontStyle
|
Number |
getTitleMarginBottom()
Gets the titleMarginBottom
|
Number |
getTitleSpacing()
Gets the titleSpacing
|
Number |
getXpadding()
Gets the xPadding
|
Number |
getYpadding()
Gets the yPadding
|
boolean |
isDisplayColors()
Gets the displayColors
|
boolean |
isEnabled()
Gets the enabled
|
boolean |
isIntersect()
Gets the intersect
|
boolean |
isRtl()
For rendering the legends from right to left.
|
void |
setBackgroundColor(String backgroundColor)
Sets the backgroundColor
|
void |
setBodyFontColor(String bodyFontColor)
Sets the bodyFontColor
|
void |
setBodyFontFamily(String bodyFontFamily)
Sets the bodyFontFamily
|
void |
setBodyFontSize(Number bodyFontSize)
Sets the bodyFontSize
|
void |
setBodyFontStyle(String bodyFontStyle)
Sets the bodyFontStyle
|
void |
setBodySpacing(Number bodySpacing)
Sets the bodySpacing
|
void |
setBorderColor(String borderColor)
Sets the borderColor
|
void |
setBorderWidth(Number borderWidth)
Sets the borderWidth
|
void |
setCaretPadding(Number caretPadding)
Sets the caretPadding
|
void |
setCaretSize(Number caretSize)
Sets the caretSize
|
void |
setCornerRadius(Number cornerRadius)
Sets the cornerRadius
|
void |
setDisplayColors(boolean displayColors)
Sets the displayColors
|
void |
setEnabled(boolean enabled)
Sets the enabled
|
void |
setFooterFontColor(String footerFontColor)
Sets the footerFontColor
|
void |
setFooterFontFamily(String footerFontFamily)
Sets the footerFontFamily
|
void |
setFooterFontSize(Number footerFontSize)
Sets the footerFontSize
|
void |
setFooterFontStyle(String footerFontStyle)
Sets the footerFontStyle
|
void |
setFooterMarginTop(Number footerMarginTop)
Sets the footerMarginTop
|
void |
setFooterSpacing(Number footerSpacing)
Sets the footerSpacing
|
void |
setIntersect(boolean intersect)
Sets the intersect
|
void |
setMode(String mode)
Sets the mode
|
void |
setMultiKeyBackground(String multiKeyBackground)
Sets the multiKeyBackground
|
void |
setPosition(String position)
Sets the position
|
void |
setRtl(boolean rtl)
For rendering the legends from right to left.
|
void |
setTextDirection(String textDirection)
Text Direction 'ltr' or 'rtl' regardless of the css specified on the canvas.
|
void |
setTitleFontColor(String titleFontColor)
Sets the titleFontColor
|
void |
setTitleFontFamily(String titleFontFamily)
Sets the titleFontFamily
|
void |
setTitleFontSize(Number titleFontSize)
Sets the titleFontSize
|
void |
setTitleFontStyle(String titleFontStyle)
Sets the titleFontStyle
|
void |
setTitleMarginBottom(Number titleMarginBottom)
Sets the titleMarginBottom
|
void |
setTitleSpacing(Number titleSpacing)
Sets the titleSpacing
|
void |
setXpadding(Number xpadding)
Sets the xPadding
|
void |
setYpadding(Number ypadding)
Sets the yPadding
|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- Are on-canvas tooltips enabledpublic String getMode()
public void setMode(String mode)
mode
- Sets which elements appear in the tooltip.public boolean isIntersect()
public void setIntersect(boolean intersect)
intersect
- if true, the tooltip mode applies only when the mouse position intersects with an element.
If false, the mode will be applied at all times.public String getPosition()
public void setPosition(String position)
position
- The mode for positioning the tooltip.public String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor
- Background color of the tooltip.public String getTitleFontFamily()
public void setTitleFontFamily(String titleFontFamily)
titleFontFamily
- title fontpublic Number getTitleFontSize()
public void setTitleFontSize(Number titleFontSize)
titleFontSize
- Title font sizepublic String getTitleFontStyle()
public void setTitleFontStyle(String titleFontStyle)
titleFontStyle
- Title font stylepublic String getTitleFontColor()
public void setTitleFontColor(String titleFontColor)
titleFontColor
- Title font colorpublic Number getTitleSpacing()
public void setTitleSpacing(Number titleSpacing)
titleSpacing
- Spacing to add to top and bottom of each title line.public Number getTitleMarginBottom()
public void setTitleMarginBottom(Number titleMarginBottom)
titleMarginBottom
- Margin to add on bottom of title section.public String getBodyFontFamily()
public void setBodyFontFamily(String bodyFontFamily)
bodyFontFamily
- body line fontpublic Number getBodyFontSize()
public void setBodyFontSize(Number bodyFontSize)
bodyFontSize
- Body font sizepublic String getBodyFontStyle()
public void setBodyFontStyle(String bodyFontStyle)
bodyFontStyle
- Body font stylepublic String getBodyFontColor()
public void setBodyFontColor(String bodyFontColor)
bodyFontColor
- Body font colorpublic Number getBodySpacing()
public void setBodySpacing(Number bodySpacing)
bodySpacing
- Spacing to add to top and bottom of each tooltip item.public String getFooterFontFamily()
public void setFooterFontFamily(String footerFontFamily)
footerFontFamily
- footer fontpublic Number getFooterFontSize()
public void setFooterFontSize(Number footerFontSize)
footerFontSize
- Footer font sizepublic String getFooterFontStyle()
public void setFooterFontStyle(String footerFontStyle)
footerFontStyle
- Footer font stylepublic String getFooterFontColor()
public void setFooterFontColor(String footerFontColor)
footerFontColor
- Footer font colorpublic Number getFooterSpacing()
public void setFooterSpacing(Number footerSpacing)
footerSpacing
- Spacing to add to top and bottom of each footer line.public Number getFooterMarginTop()
public void setFooterMarginTop(Number footerMarginTop)
footerMarginTop
- Margin to add before drawing the footer.public Number getXpadding()
public void setXpadding(Number xpadding)
xpadding
- Padding to add on left and right of tooltip.public Number getYpadding()
public void setYpadding(Number ypadding)
ypadding
- Padding to add on top and bottom of tooltip.public Number getCaretPadding()
public void setCaretPadding(Number caretPadding)
caretPadding
- Extra distance to move the end of the tooltip arrow away from the tooltip point.public Number getCaretSize()
public void setCaretSize(Number caretSize)
caretSize
- Size, in px, of the tooltip arrow.public Number getCornerRadius()
public void setCornerRadius(Number cornerRadius)
cornerRadius
- Radius of tooltip corner curves.public String getMultiKeyBackground()
public void setMultiKeyBackground(String multiKeyBackground)
multiKeyBackground
- Color to draw behind the colored boxes when multiple items are in the tooltippublic boolean isDisplayColors()
public void setDisplayColors(boolean displayColors)
displayColors
- if true, color boxes are shown in the tooltippublic String getBorderColor()
public void setBorderColor(String borderColor)
borderColor
- Color of the borderpublic Number getBorderWidth()
public void setBorderWidth(Number borderWidth)
borderWidth
- Size of the borderpublic boolean isRtl()
public void setRtl(boolean rtl)
rtl
- the rtl to setpublic String getTextDirection()
public void setTextDirection(String textDirection)
textDirection
- the textDirection to setpublic String encode() throws IOException
IOException
- If an I/O error occursCopyright © 2020. All rights reserved.