Class TooltipLabelPointStyle


  • public final class TooltipLabelPointStyle
    extends NativeObjectContainer
    This object contains the point style info when a label in the tooltip.
    It must be used in the label tooltip callback.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • TooltipLabelPointStyle

        public TooltipLabelPointStyle()
        Creates the object with an empty native object
      • TooltipLabelPointStyle

        public TooltipLabelPointStyle​(PointStyle poitnStyle)
        Creates the object setting the point style argument
        Parameters:
        poitnStyle - initial point style value
      • TooltipLabelPointStyle

        public TooltipLabelPointStyle​(Img poitnStyle)
        Creates the object setting the point style argument
        Parameters:
        poitnStyle - initial point style value
      • TooltipLabelPointStyle

        public TooltipLabelPointStyle​(Canvas poitnStyle)
        Creates the object setting the point style argument
        Parameters:
        poitnStyle - initial point style value
    • Method Detail

      • getPointStyle

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

        public Img getPointStyleAsImage()
        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.
      • getPointStyleAsCanvas

        public 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.
      • getPointStyleType

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

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

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

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

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

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

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

        public NativeObject getObject()
        Wraps the protected method to get the java script object in order to consume it.
        Returns:
        the java script object in order to consume it.