Class TooltipContext


  • public final class TooltipContext
    extends ChartContext
    The option context is used to give contextual information when resolving options.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • TooltipContext

        public TooltipContext​(NativeObject nativeObject)
        Creates the object with native object instance to be wrapped.
        Parameters:
        nativeObject - native object instance to be wrapped.
    • Method Detail

      • getModel

        public TooltipModel getModel()
        Returns the model of tooltip.
        Returns:
        the model of tooltip
      • getItems

        public List<TooltipItem> getItems()
        Returns the model of tooltip.
        Returns:
        the model of tooltip
      • checkIfPropertyIsValid

        protected boolean checkIfPropertyIsValid​(Key property)
        Description copied from class: ChartContext
        Checks if the key passed as argument is a key already used for other context properties.
        Overrides:
        checkIfPropertyIsValid in class ChartContext
        Parameters:
        property - property to use to store a custom attribute
        Returns:
        true if the property can be used to store an attribute.