Class TooltipHeader

    • Constructor Detail

      • TooltipHeader

        public TooltipHeader()
    • 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 to Highcharts.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.