Class Point


  • public class Point
    extends Object
    Point elements are used to represent the points in a line chart or a bubble chart.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getElement

        protected AbstractElement<IsDefaultPoint> getElement()
        Returns the element instance to be managed.
        Returns:
        the element instance to be managed
      • getDefaultElement

        protected IsDefaultPoint getDefaultElement()
        Returns the element instance to be managed.
        Returns:
        the element instance to be managed
      • 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 double getRadius()
        Returns the radius of the point.
        Returns:
        the radius of the point.
      • setPointStyle

        public void setPointStyle​(boolean pointStyle)
        Sets the style of the point.
        Parameters:
        pointStyle - the style of the point.
      • setPointStyle

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

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

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

        public Canvas getPointStyleAsCanvas()
        Returns the style of the point as canvas.
        Returns:
        the style of the point as canvas.
      • getPointStyle

        public PointStyle getPointStyle()
        Returns the style of the legend.
        Returns:
        the style of the legend.
      • getPointStyleAsImage

        public Img getPointStyleAsImage()
        Returns the style of the point as image.
        Returns:
        the style of the point as image.
      • setHitRadius

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

        public double getHitRadius()
        Returns the pixel size of the non-displayed point that reacts to mouse events.
        Returns:
        the pixel size of the non-displayed point.
      • setHoverRadius

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

        public double getHoverRadius()
        Returns the radius of the point when hovered.
        Returns:
        the radius of the point when hovered.
      • setRotation

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

        public double getRotation()
        Returns the point rotation (in degrees).
        Returns:
        the point rotation (in degrees).
      • getPointStyleCallback

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

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

        public void setPointStyle​(NativeCallback pointStyleCallback)
        Sets the point style callback.
        Parameters:
        pointStyleCallback - the point style callback.
      • 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.
      • setRadius

        public void setRadius​(NativeCallback radiusCallback)
        Sets the radius callback.
        Parameters:
        radiusCallback - the radius callback.
      • 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.
      • setHitRadius

        public void setHitRadius​(NativeCallback hitRadiusCallback)
        Sets the hit radius callback.
        Parameters:
        hitRadiusCallback - the hit radius callback.
      • 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.
      • setHoverRadius

        public void setHoverRadius​(NativeCallback hoverRadiusCallback)
        Sets the hover radius callback.
        Parameters:
        hoverRadiusCallback - the hover radius callback.
      • 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.
      • setRotation

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

        public void setBackgroundColor​(IsColor backgroundColor)
        Sets the background color.
        Parameters:
        backgroundColor - the background color.
      • setBackgroundColor

        public void setBackgroundColor​(String backgroundColor)
        Sets the background color.
        Parameters:
        backgroundColor - the background color.
      • getBackgroundColorAsString

        public String getBackgroundColorAsString()
        Returns the background color.
        Returns:
        the background color.
      • getBackgroundColor

        public IsColor getBackgroundColor()
        Returns the background color.
        Returns:
        the background color.
      • setBorderWidth

        public void setBorderWidth​(int borderWidth)
        Sets the border width.
        Parameters:
        borderWidth - the border width.
      • getBorderWidth

        public int getBorderWidth()
        Returns the border width.
        Returns:
        the border width.
      • setBorderColor

        public void setBorderColor​(IsColor borderColor)
        Sets the border color.
        Parameters:
        borderColor - the border color.
      • setBorderColor

        public void setBorderColor​(String borderColor)
        Sets the border color.
        Parameters:
        borderColor - the border color.
      • getBorderColorAsString

        public String getBorderColorAsString()
        Returns the border color.
        Returns:
        the border color.
      • getBorderColor

        public IsColor getBorderColor()
        Returns the border color.
        Returns:
        the border color.
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(IsColor backgroundColor)
        Sets the background color when hovered.
        Parameters:
        backgroundColor - the background color when hovered.
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(String backgroundColor)
        Sets the background color when hovered.
        Parameters:
        backgroundColor - the background color when hovered.
      • getHoverBackgroundColorAsString

        public String getHoverBackgroundColorAsString()
        Returns the background color when hovered.
        Returns:
        the background color when hovered.
      • getHoverBackgroundColor

        public IsColor getHoverBackgroundColor()
        Returns the background color when hovered.
        Returns:
        the background color when hovered.
      • setHoverBorderWidth

        public void setHoverBorderWidth​(int borderWidth)
        Sets the border width when hovered.
        Parameters:
        borderWidth - the border width when hovered.
      • getHoverBorderWidth

        public int getHoverBorderWidth()
        Returns the border width when hovered.
        Returns:
        the border width when hovered.
      • setHoverBorderColor

        public void setHoverBorderColor​(IsColor borderColor)
        Sets the border color when hovered.
        Parameters:
        borderColor - the border color when hovered.
      • setHoverBorderColor

        public void setHoverBorderColor​(String borderColor)
        Sets the border color when hovered.
        Parameters:
        borderColor - the border color when hovered.
      • getHoverBorderColorAsString

        public String getHoverBorderColorAsString()
        Returns the border color when hovered.
        Returns:
        the border color when hovered.
      • getHoverBorderColor

        public IsColor getHoverBorderColor()
        Returns the border color when hovered.
        Returns:
        the border color when hovered.
      • getBackgroundColorCallback

        public ColorCallback<DatasetContext> getBackgroundColorCallback()
        Returns the background color callback, if set, otherwise null.
        Returns:
        the background color callback, if set, otherwise null.
      • setBackgroundColor

        public void setBackgroundColor​(ColorCallback<DatasetContext> backgroundColorCallback)
        Sets the background color callback.
        Parameters:
        backgroundColorCallback - the background color callback.
      • setBackgroundColor

        public void setBackgroundColor​(NativeCallback backgroundColorCallback)
        Sets the background color callback.
        Parameters:
        backgroundColorCallback - the background color callback.
      • getBorderColorCallback

        public ColorCallback<DatasetContext> getBorderColorCallback()
        Returns the border color callback, if set, otherwise null.
        Returns:
        the border color callback, if set, otherwise null.
      • setBorderColor

        public void setBorderColor​(ColorCallback<DatasetContext> borderColorCallback)
        Sets the border color callback.
        Parameters:
        borderColorCallback - the border color callback.
      • setBorderColor

        public void setBorderColor​(NativeCallback borderColorCallback)
        Sets the border color callback.
        Parameters:
        borderColorCallback - the border color callback.
      • 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.
      • setBorderWidth

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

        public ColorCallback<DatasetContext> getHoverBackgroundColorCallback()
        Returns the background color callback, if set, otherwise null.
        Returns:
        the background color callback, if set, otherwise null.
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
        Sets the background color callback, as hovered.
        Parameters:
        hoverBackgroundColorCallback - the background color callback, as hovered
      • setHoverBackgroundColor

        public void setHoverBackgroundColor​(NativeCallback hoverBackgroundColorCallback)
        Sets the background color callback, as hovered.
        Parameters:
        hoverBackgroundColorCallback - the background color callback, as hovered
      • getHoverBorderColorCallback

        public ColorCallback<DatasetContext> getHoverBorderColorCallback()
        Returns the border color callback, if set, otherwise null.
        Returns:
        the border color callback, if set, otherwise null.
      • setHoverBorderColor

        public void setHoverBorderColor​(ColorCallback<DatasetContext> hoverBorderColorCallback)
        Sets the border color callback, as hovered.
        Parameters:
        hoverBorderColorCallback - the border color callback, as hovered
      • setHoverBorderColor

        public void setHoverBorderColor​(NativeCallback hoverBorderColorCallback)
        Sets the border color callback, as hovered.
        Parameters:
        hoverBorderColorCallback - the border color callback, as hovered
      • getHoverBorderWidthCallback

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

        public void setHoverBorderWidth​(WidthCallback<DatasetContext> hoverBorderWidthCallback)
        Sets the border width callback, as hovered.
        Parameters:
        hoverBorderWidthCallback - the border width callback, as hovered
      • setHoverBorderWidth

        public void setHoverBorderWidth​(NativeCallback hoverBorderWidthCallback)
        Sets the border width callback, as hovered.
        Parameters:
        hoverBorderWidthCallback - the border width callback, as hovered
      • getOptions

        protected final ConfigurationOptions getOptions()
        Returns the configuration options.
        Returns:
        the configuration options.
      • getConfiguration

        protected final ExtendedOptions getConfiguration()
        Returns the configuration element.
        Returns:
        the configuration element.
      • getChart

        public final IsChart getChart()
        Returns the chart instance
        Returns:
        the chart