java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractTooltip<T>
Type Parameters:
T - origin tooltip class type
All Implemented Interfaces:
HasPadding<T>, Serializable
Direct Known Subclasses:
InnerTooltip, Tooltip

public abstract class AbstractTooltip<T extends ChartObservableObject> extends ChartObservableObject implements HasPadding<T>
The base class for tooltip components.
See Also:
  • Field Details

  • Constructor Details

    • AbstractTooltip

      public AbstractTooltip()
  • Method Details

    • getShow

      public Boolean getShow()
    • setShow

      public void setShow(Boolean show)
    • getTrigger

      public AbstractTooltip.Trigger getTrigger()
    • setTrigger

      public void setTrigger(AbstractTooltip.Trigger trigger)
    • getPosition

      public AbstractTooltip.Position getPosition()
    • setPosition

      public void setPosition(String horizontalPosition, String verticalPosition)
    • setPosition

      public void setPosition(AbstractTooltip.Position.ItemTriggerPosition position)
    • getAxisPointer

      public AbstractTooltip.AxisPointer getAxisPointer()
    • setAxisPointer

      public void setAxisPointer(AbstractTooltip.AxisPointer axisPointer)
    • getFormatter

      public String getFormatter()
    • setFormatter

      public void setFormatter(String formatter)
    • getFormatterFunction

      public JsFunction getFormatterFunction()
    • setFormatterFunction

      public void setFormatterFunction(JsFunction formatterFunction)
    • setFormatterFunction

      public void setFormatterFunction(String formatterFunction)
    • getValueFormatter

      public String getValueFormatter()
    • setValueFormatter

      public void setValueFormatter(String valueFormatter)
    • getValueFormatterFunction

      public JsFunction getValueFormatterFunction()
    • setValueFormatterFunction

      public void setValueFormatterFunction(JsFunction valueFormatterFunction)
    • setValueFormatterFunction

      public void setValueFormatterFunction(String valueFormatterFunction)
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
    • getBorderColor

      public Color getBorderColor()
    • setBorderColor

      public void setBorderColor(Color borderColor)
    • getBorderWidth

      public Integer getBorderWidth()
    • setBorderWidth

      public void setBorderWidth(Integer borderWidth)
    • getTextStyle

      public TextStyle getTextStyle()
    • setTextStyle

      public void setTextStyle(TextStyle textStyle)
    • getExtraCssText

      public String getExtraCssText()
    • setExtraCssText

      public void setExtraCssText(String extraCssText)
    • getPadding

      public Padding getPadding()
      Specified by:
      getPadding in interface HasPadding<T extends ChartObservableObject>
      Returns:
      space around content
    • setPadding

      public void setPadding(Integer padding)
      Description copied from interface: HasPadding
      Sets padding on each of the four sides or replaces an existing one. The unit is px.
      Specified by:
      setPadding in interface HasPadding<T extends ChartObservableObject>
      Parameters:
      padding - padding to set
    • setPadding

      public void setPadding(Integer vertical, Integer horizontal)
      Description copied from interface: HasPadding
      Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.
      Specified by:
      setPadding in interface HasPadding<T extends ChartObservableObject>
      Parameters:
      vertical - top and bottom padding to set
      horizontal - left and right padding to set
    • setPadding

      public void setPadding(Integer top, Integer right, Integer bottom, Integer left)
      Description copied from interface: HasPadding
      Sets each of the four paddings separately. The unit is px.
      Specified by:
      setPadding in interface HasPadding<T extends ChartObservableObject>
      Parameters:
      top - top padding to set
      right - right padding to set
      bottom - bottom padding to set
      left - left padding to set
    • withShow

      public T withShow(Boolean show)
    • withTrigger

      public T withTrigger(AbstractTooltip.Trigger trigger)
    • withPosition

      public T withPosition(String horizontalPosition, String verticalPosition)
    • withPosition

      public T withPosition(AbstractTooltip.Position.ItemTriggerPosition position)
    • withAxisPointer

      public T withAxisPointer(AbstractTooltip.AxisPointer axisPointer)
    • withFormatter

      public T withFormatter(String formatter)
    • withFormatterFunction

      public T withFormatterFunction(JsFunction formatterFunction)
    • withFormatterFunction

      public T withFormatterFunction(String formatterFunction)
    • withValueFormatter

      public T withValueFormatter(String valueFormatter)
    • withValueFormatterFunction

      public T withValueFormatterFunction(JsFunction valueFormatterFunction)
    • withValueFormatterFunction

      public T withValueFormatterFunction(String valueFormatterFunction)
    • withBackgroundColor

      public T withBackgroundColor(Color backgroundColor)
    • withBorderColor

      public T withBorderColor(Color borderColor)
    • withBorderWidth

      public T withBorderWidth(Integer borderWidth)
    • withTextStyle

      public T withTextStyle(TextStyle textStyle)
    • withExtraCssText

      public T withExtraCssText(String extraCssText)