Package org.zkoss.chart
Class TooltipHeader
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.TooltipHeader
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class TooltipHeader extends Optionable
The options for the tooltip header whenTooltip.setSplit(boolean)is enabled. The header is the box containing the X value in a split tooltip.All the options in this class support
DynamicalAttribute.- Since:
- 13.1.1.0
- Author:
- peggypeng
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description TooltipHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBackgroundColor()Returns the background color for the tooltip header.ColorgetBorderColor()Returns the border color for the tooltip header.NumbergetBorderWidth()Returns the width of the border for the tooltip header.NumbergetDistance()Returns the distance between the plot area and the header (except the chevron) in a split tooltip, in pixels.StringgetShape()Returns the name of a symbol to use for the border around the tooltip header.<K,V>
Map<K,V>getStyle()Returns the CSS styles for the tooltip header.voidsetBackgroundColor(String color)Sets the background color for the tooltip header.voidsetBackgroundColor(Color color)Sets the background color for the tooltip header.voidsetBackgroundColor(LinearGradient color)Sets the background color for the tooltip header.voidsetBackgroundColor(RadialGradient color)Sets the background color for the tooltip header.voidsetBorderColor(String color)Sets the border color for the tooltip header.voidsetBorderColor(Color color)Sets the border color for the tooltip header.voidsetBorderColor(LinearGradient color)Sets the border color for the tooltip header.voidsetBorderColor(RadialGradient color)Sets the border color for the tooltip header.voidsetBorderWidth(Number borderWidth)Sets the width of the border for the tooltip header.voidsetDistance(Number distance)Sets the distance between the plot area and the header (except the chevron) in a split tooltip, in pixels.voidsetShape(String shape)Sets the name of a symbol to use for the border around the tooltip header, such as "callout" or "rect".voidsetStyle(String style)Sets the CSS styles for the tooltip header, in the format of CSS key:value pairs separated by ";", for example"fontSize: 1.2em; fontWeight: bold".<K,V>
voidsetStyle(Map<K,V> style)Sets the CSS styles for the tooltip header.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getBackgroundColor
public Color getBackgroundColor()
Returns the background color for the tooltip header.Default: null
-
setBackgroundColor
public void setBackgroundColor(Color color)
Sets the background color for the tooltip header.
-
setBackgroundColor
public void setBackgroundColor(String color)
Sets the background color for the tooltip header.
-
setBackgroundColor
public void setBackgroundColor(LinearGradient color)
Sets the background color for the tooltip header.
-
setBackgroundColor
public void setBackgroundColor(RadialGradient color)
Sets the background color for the tooltip header.
-
getBorderColor
public Color getBorderColor()
Returns the border color for the tooltip header.Default: null
-
setBorderColor
public void setBorderColor(Color color)
Sets the border color for the tooltip header.
-
setBorderColor
public void setBorderColor(String color)
Sets the border color for the tooltip header.
-
setBorderColor
public void setBorderColor(LinearGradient color)
Sets the border color for the tooltip header.
-
setBorderColor
public void setBorderColor(RadialGradient color)
Sets the border color for the tooltip header.
-
getBorderWidth
public Number getBorderWidth()
Returns the width of the border for the tooltip header.Default: null
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the width of the border for the tooltip header.
-
getDistance
public Number getDistance()
Returns the distance between the plot area and the header (except the chevron) in a split tooltip, in pixels. The default value makes the header text align with the axis labels.Default: 5
-
setDistance
public void setDistance(Number distance)
Sets the distance between the plot area and the header (except the chevron) in a split tooltip, in pixels. The default value makes the header text align with the axis labels.
-
getShape
public String getShape()
Returns the name of a symbol to use for the border around the tooltip header.Default: "callout"
-
setShape
public void setShape(String shape)
Sets the name of a symbol to use for the border around the tooltip header, such as "callout" or "rect". Custom callbacks for symbol path generation can also be added toHighcharts.SVGRenderer.prototype.symbols.
-
getStyle
public <K,V> Map<K,V> getStyle()
Returns the CSS styles for the tooltip header. If not set, the font size is 1em, so the header text is the same size as the axis labels.Default: null
-
setStyle
public void setStyle(String style)
Sets the CSS styles for the tooltip header, in the format of CSS key:value pairs separated by ";", for example"fontSize: 1.2em; fontWeight: bold".
-
setStyle
public <K,V> void setStyle(Map<K,V> style)
Sets the CSS styles for the tooltip header.
-
-