Class HoverDataset

    • Constructor Detail

      • HoverDataset

        protected HoverDataset​(Type type,
                               IsDefaultOptions defaultValues,
                               boolean hidden)
        Creates the data set using a default and chart type related to the data set.
        Parameters:
        type - chart type related to the data set
        defaultValues - default options
        hidden - if true, it will be initially hidden.
    • Method Detail

      • setColors

        protected void setColors​(Key key,
                                 String... colors)
        Description copied from class: HoverFlexDataset
        Sets a color property in the dataset, setting a single value or an array.
        Overrides:
        setColors in class HoverFlexDataset
        Parameters:
        key - property key
        colors - colors value to be set
      • setColors

        protected void setColors​(Key key,
                                 IsColor... colors)
        Description copied from class: HoverFlexDataset
        Sets a color property in the dataset, setting a single value or an array.
        Overrides:
        setColors in class HoverFlexDataset
        Parameters:
        key - property key
        colors - colors value to be set
      • getColors

        protected ArrayString getColors​(Key key,
                                        String defaultvalue)
        Description copied from class: HoverFlexDataset
        Returns an array of colors as string.
        Overrides:
        getColors in class HoverFlexDataset
        Parameters:
        key - property key
        defaultvalue - default value if key does not exist
        Returns:
        an array of colors
      • setWidths

        protected void setWidths​(Key key,
                                 int... widths)
        Description copied from class: HoverFlexDataset
        Sets a width property in the dataset, setting a single value or an array.
        Overrides:
        setWidths in class HoverFlexDataset
        Parameters:
        key - property key
        widths - widths value to be set
      • getWidths

        protected ArrayInteger getWidths​(Key key,
                                         int defaultvalue)
        Description copied from class: HoverFlexDataset
        Returns an array of widths as integer
        Overrides:
        getWidths in class HoverFlexDataset
        Parameters:
        key - property key
        defaultvalue - default value if key does not exist
        Returns:
        an array of widths
      • getBorderWidthCallback

        public WidthCallback<DatasetContext> getBorderWidthCallback()
        Returns the border width callback, if set, otherwise null.
        Returns:
        the border width callback, if set, otherwise null
      • setBorderWidth

        public void setBorderWidth​(WidthCallback<DatasetContext> borderWidthCallback)
        Sets the border width callback.
        Parameters:
        borderWidthCallback - the border width callback to set
      • setBorderWidth

        public void setBorderWidth​(NativeCallback borderWidthCallback)
        Sets the border width callback.
        Parameters:
        borderWidthCallback - the border width callback to set
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(IsColor... colors)
        Sets the fill color of the arcs when hovered.
        Overrides:
        setHoverBackgroundColor in class HoverFlexDataset
        Parameters:
        colors - the fill color of the arcs when hovered
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(String... colors)
        Sets the fill color of the arcs when hovered as string.
        Overrides:
        setHoverBackgroundColor in class HoverFlexDataset
        Parameters:
        colors - the fill color of the arcs when hovered as string
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(Pattern... colors)
        Sets the fill pattern of the arcs in the data set when hovered.
        Overrides:
        setHoverBackgroundColor in class HoverFlexDataset
        Parameters:
        colors - the fill pattern of the arcs in the data set when hovered.
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(Gradient... colors)
        Sets the fill gradient of the arcs in the data set when hovered.
        Overrides:
        setHoverBackgroundColor in class HoverFlexDataset
        Parameters:
        colors - the fill gradient of the arcs in the data set when hovered.
      • getHoverBackgroundColorAsString

        public List<String> getHoverBackgroundColorAsString()
        Returns the fill color of the arcs when hovered as string.
        If property is missing or not a color, returns an empty list.
        Overrides:
        getHoverBackgroundColorAsString in class HoverFlexDataset
        Returns:
        list of the fill color of the arcs when hovered as string.
        If property is missing or not a color, returns an empty list
      • getHoverBackgroundColorAsPatterns

        public List<Pattern> getHoverBackgroundColorAsPatterns()
        Returns the fill patterns of the arcs in the data set when hovered.
        If property is missing or not a pattern, returns an empty list.
        Overrides:
        getHoverBackgroundColorAsPatterns in class HoverFlexDataset
        Returns:
        list of the fill patterns of the arcs in the data set when hovered.
        If property is missing or not a pattern, returns an empty list
      • getHoverBackgroundColorAsGradient

        public List<Gradient> getHoverBackgroundColorAsGradient()
        Returns the fill gradients of the arcs in the data set when hovered.
        If property is missing or not a gradient, returns an empty list.
        Overrides:
        getHoverBackgroundColorAsGradient in class HoverFlexDataset
        Returns:
        list of the fill gradients of the arcs in the data set when hovered.
        If property is missing or not a gradient, returns an empty list.
      • setHoverBorderColor

        public void setHoverBorderColor​(IsColor... colors)
        Sets the stroke color of the arcs when hovered as string.
        Overrides:
        setHoverBorderColor in class HoverFlexDataset
        Parameters:
        colors - the stroke color of the arcs when hovered as string
      • setHoverBorderColor

        public void setHoverBorderColor​(String... colors)
        Sets the stroke color of the arcs when hovered as string.
        Overrides:
        setHoverBorderColor in class HoverFlexDataset
        Parameters:
        colors - the stroke color of the arcs when hovered as string
      • setHoverBorderColor

        public void setHoverBorderColor​(Gradient... colors)
        Sets the stroke gradient of the arcs in the data set when hovered as gradient.
        Overrides:
        setHoverBorderColor in class HoverFlexDataset
        Parameters:
        colors - the stroke gradient of the arcs in the data set when hovered as gradient.
      • getHoverBorderColorAsGradient

        public List<Gradient> getHoverBorderColorAsGradient()
        Returns the stroke gradients of the arcs in the data set when hovered.
        If property is missing or not a pattern, returns an empty list.
        Overrides:
        getHoverBorderColorAsGradient in class HoverFlexDataset
        Returns:
        list of the stroke gradients of the arcs in the data set when hovered.
        If property is missing or not a pattern, returns an empty list.
      • getHoverBorderWidth

        public List<Integer> getHoverBorderWidth()
        Returns the stroke width of the arcs when hovered.
        Overrides:
        getHoverBorderWidth in class HoverFlexDataset
        Returns:
        list of the stroke width of the arcs when hovered.
      • getHoverBorderWidthCallback

        public WidthCallback<DatasetContext> getHoverBorderWidthCallback()
        Returns the hover border width callback, if set, otherwise null.
        Returns:
        the hover border width callback, if set, otherwise null.
      • setHoverBorderWidth

        public void setHoverBorderWidth​(WidthCallback<DatasetContext> hoverBorderWidthCallback)
        Sets the hover border width callback.
        Parameters:
        hoverBorderWidthCallback - the hover border width callback to set