Class BubbleDataset

    • Constructor Detail

      • BubbleDataset

        public BubbleDataset()
        Creates a data set.
        It uses the global options has default.
      • BubbleDataset

        public BubbleDataset​(boolean hidden)
        Creates a data set.
        It uses the global options has default.
        Parameters:
        hidden - if true, it will be initially hidden.
      • BubbleDataset

        public BubbleDataset​(IsDefaultOptions defaultValues)
        Creates the data set using a default.
        Parameters:
        defaultValues - default options
      • BubbleDataset

        public BubbleDataset​(IsDefaultOptions defaultValues,
                             boolean hidden)
        Creates the data set using a default.
        Parameters:
        defaultValues - default options
        hidden - if true, it will be initially hidden.
      • BubbleDataset

        protected BubbleDataset​(Type type,
                                boolean hidden)
        Creates the data set using chart type related to the data set.
        Parameters:
        type - chart type related to the data set
        hidden - if true, it will be initially hidden.
      • BubbleDataset

        protected BubbleDataset​(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

      • getOrderHandler

        public final org.pepstock.charba.client.data.OrderHandler getOrderHandler()
      • getPointStyleHandler

        public final org.pepstock.charba.client.data.DataPointStyleHandler getPointStyleHandler()
      • getDefaultBackgroundColorAsString

        protected String getDefaultBackgroundColorAsString()
        Description copied from class: Dataset
        Returns the default background color value based on type of chart.
        Overrides:
        getDefaultBackgroundColorAsString in class Dataset
        Returns:
        the default background color value based on type of chart.
      • getDefaultBorderColorAsString

        protected String getDefaultBorderColorAsString()
        Description copied from class: Dataset
        Returns the default border color value based on type of chart.
        Overrides:
        getDefaultBorderColorAsString in class Dataset
        Returns:
        the default border color value based on type of chart.
      • getDefaultBorderWidth

        protected int getDefaultBorderWidth()
        Description copied from class: Dataset
        Returns the default border width value based on type of chart.
        Overrides:
        getDefaultBorderWidth in class Dataset
        Returns:
        the default border width value based on type of chart.
      • getDefaultHoverBackgroundColorAsString

        protected String getDefaultHoverBackgroundColorAsString()
        Description copied from class: Dataset
        Returns the default background color value based on type of chart.
        Overrides:
        getDefaultHoverBackgroundColorAsString in class Dataset
        Returns:
        the default background color value based on type of chart.
      • getDefaultHoverBorderColorAsString

        protected String getDefaultHoverBorderColorAsString()
        Description copied from class: Dataset
        Returns the default border color value based on type of chart.
        Overrides:
        getDefaultHoverBorderColorAsString in class Dataset
        Returns:
        the default border color value based on type of chart.
      • getDefaultHoverBorderWidth

        protected int getDefaultHoverBorderWidth()
        Description copied from class: Dataset
        Returns the default border width value based on type of chart.
        Overrides:
        getDefaultHoverBorderWidth in class Dataset
        Returns:
        the default border width value based on type of chart.
      • setDrawActiveElementsOnTop

        public void setDrawActiveElementsOnTop​(boolean drawActiveElementsOnTop)
        Sets if draws the active points of a dataset over the other points of the dataset.
        Parameters:
        drawActiveElementsOnTop - if true, draws the active points of a dataset over the other points of the dataset
      • isDrawActiveElementsOnTop

        public boolean isDrawActiveElementsOnTop()
        Returns if draws the active points of a dataset over the other points of the dataset.
        Returns:
        if draws the active points of a dataset over the other points of the dataset.
      • getDrawActiveElementsOnTopCallback

        public DrawActiveElementsOnTopCallback getDrawActiveElementsOnTopCallback()
        Returns the callback, if draws the active points of a dataset over the other points of the dataset.
        Returns:
        the callback, if draws the active points of a dataset over the other points of the dataset
      • setDrawActiveElementsOnTop

        public void setDrawActiveElementsOnTop​(NativeCallback drawActiveElementsOnTopCallback)
        Sets the callback, if draws the active points of a dataset over the other points of the dataset.
        Parameters:
        drawActiveElementsOnTopCallback - the callback, if draws the active points of a dataset over the other points of the dataset.
      • setDrawActiveElementsOnTop

        public void setDrawActiveElementsOnTop​(DrawActiveElementsOnTopCallback drawActiveElementsOnTopCallback)
        Sets the callback, if draws the active points of a dataset over the other points of the dataset.
        Parameters:
        drawActiveElementsOnTopCallback - the callback, if draws the active points of a dataset over the other points of the dataset.
      • setHitRadius

        public void setHitRadius​(double... hitRadius)
        Sets the pixel size of the non-displayed point that reacts to mouse events.
        Parameters:
        hitRadius - array of the pixel size of the non-displayed point.
      • getHitRadius

        public List<Double> getHitRadius()
        Returns the pixel size of the non-displayed point that reacts to mouse events.
        Returns:
        list of the pixel size of the non-displayed point.
      • setHoverRadius

        public void setHoverRadius​(double... hoverRadius)
        Sets the radius of the point when hovered.
        Parameters:
        hoverRadius - array of the radius of the point when hovered.
      • getHoverRadius

        public List<Double> getHoverRadius()
        Returns the radius of the point when hovered.
        Returns:
        list of the radius of the point when hovered.
      • setRadius

        public void setRadius​(double... radius)
        Sets the radius of the point shape.
        If set to 0, the point is not rendered.
        Parameters:
        radius - array of the radius of the point shape.
      • getRadius

        public List<Double> getRadius()
        Returns the radius of the point shape.
        Returns:
        list of the radius of the point shape.
      • setRotation

        public void setRotation​(double... rotation)
        Sets the rotation of the point in degrees.
        Parameters:
        rotation - array of the rotation of the point in degrees.
      • getRotation

        public List<Double> getRotation()
        Returns the rotation of the point in degrees.
        Returns:
        list of the rotation of the point in degrees.
      • getRadiusCallback

        public RadiusCallback<DatasetContext> getRadiusCallback()
        Returns the radius callback, if set, otherwise null.
        Returns:
        the radius callback, if set, otherwise null.
      • setRadius

        public void setRadius​(RadiusCallback<DatasetContext> radiusCallback)
        Sets the radius callback.
        Parameters:
        radiusCallback - the radius callback to set
      • setRadius

        public void setRadius​(NativeCallback radiusCallback)
        Sets the radius callback.
        Parameters:
        radiusCallback - the radius callback to set
      • getHitRadiusCallback

        public RadiusCallback<DatasetContext> getHitRadiusCallback()
        Returns the hit radius callback, if set, otherwise null.
        Returns:
        the hit radius callback, if set, otherwise null.
      • setHitRadius

        public void setHitRadius​(RadiusCallback<DatasetContext> hitRadiusCallback)
        Sets the hit radius callback.
        Parameters:
        hitRadiusCallback - the hit radius callback to set
      • setHitRadius

        public void setHitRadius​(NativeCallback hitRadiusCallback)
        Sets the hit radius callback.
        Parameters:
        hitRadiusCallback - the hit radius callback to set
      • getHoverRadiusCallback

        public RadiusCallback<DatasetContext> getHoverRadiusCallback()
        Returns the hover radius callback, if set, otherwise null.
        Returns:
        the hover radius callback, if set, otherwise null.
      • setHoverRadius

        public void setHoverRadius​(RadiusCallback<DatasetContext> hoverRadiusCallback)
        Sets the hover radius callback.
        Parameters:
        hoverRadiusCallback - the hover radius callback to set
      • setHoverRadius

        public void setHoverRadius​(NativeCallback hoverRadiusCallback)
        Sets the hover radius callback.
        Parameters:
        hoverRadiusCallback - the hover radius callback to set
      • getRotationCallback

        public RotationCallback<DatasetContext> getRotationCallback()
        Returns the rotation callback, if set, otherwise null.
        Returns:
        the rotation callback, if set, otherwise null.
      • setRotation

        public void setRotation​(RotationCallback<DatasetContext> rotationCallback)
        Sets the rotation callback.
        Parameters:
        rotationCallback - the rotation callback to set
      • setRotation

        public void setRotation​(NativeCallback rotationCallback)
        Sets the rotation callback.
        Parameters:
        rotationCallback - the rotation callback to set
      • setOrder

        public default void setOrder​(int order)
        Sets the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Parameters:
        order - the drawing order of dataset.
      • getOrder

        public default int getOrder()
        Returns the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Returns:
        the drawing order of dataset
      • setPointStyle

        public default void setPointStyle​(PointStyle... pointStyle)
        Sets the style of the point.
        Parameters:
        pointStyle - array of the style of the point.
      • getPointStyle

        public default List<PointStyle> getPointStyle()
        Returns the style of the point.
        Returns:
        the style of the point or null if point style is set as image
      • setPointStyle

        public default void setPointStyle​(Img... pointStyle)
        Sets the style of the point as image.
        Parameters:
        pointStyle - image element of the style of the point as image.
      • getPointStyleType

        public default PointStyleType getPointStyleType()
        Returns the type of point style.
        Returns:
        the type of point style
      • getPointStyleAsImages

        public default List<Img> getPointStyleAsImages()
        Returns the style of the point as image.
        If property is missing or not an image, returns null.
        Returns:
        image of the style of the point as image.
        If property is missing or not a image, returns null.
      • setPointStyle

        public default void setPointStyle​(Canvas... pointStyle)
        Sets the style of the point as canvas.
        Parameters:
        pointStyle - canvas element of the style of the point as canvas.
      • getPointStyleAsCanvas

        public default List<Canvas> getPointStyleAsCanvas()
        Returns the style of the point as canvas.
        If property is missing or not an canvas, returns null.
        Returns:
        image of the style of the point as canvas.
        If property is missing or not a canvas, returns null.
      • getPointStyleCallback

        public default PointStyleCallback<DatasetContext> getPointStyleCallback()
        Returns the point style callback, if set, otherwise null.
        Returns:
        the point style callback, if set, otherwise null.
      • setPointStyle

        public default void setPointStyle​(PointStyleCallback<DatasetContext> pointStyleCallback)
        Sets the point style callback.
        Parameters:
        pointStyleCallback - the point style callback.