Class MatrixElementOptions


  • public final class MatrixElementOptions
    extends CommonElementOptions
    Maps the out-of-the-box CHART.JS element options used to represents boxes for matrix on the charts.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getDefaultBorderWidth

        protected int getDefaultBorderWidth()
        Description copied from class: CommonElementOptions
        This method must be overrided by all element where the border width is stored in different object.
        Overrides:
        getDefaultBorderWidth in class CommonElementOptions
        Returns:
        an undefined integer
      • getHeight

        public double getHeight()
        Returns the height of matrix element in pixels.
        Returns:
        the height of matrix element in pixels
      • setHeight

        public void setHeight​(double height)
        Sets the height of matrix element in pixels.
        Parameters:
        height - the height of matrix element in pixels
      • getWidth

        public double getWidth()
        Returns the width of matrix element in pixels.
        Returns:
        the width of matrix element in pixels.
      • setWidth

        public void setWidth​(double width)
        Sets the width of matrix element in pixels.
        Parameters:
        width - the width of matrix element in pixels
      • getXAnchor

        public Anchor getXAnchor()
        Returns the anchor point on X orientation of matrix element.
        Returns:
        the anchor point on X orientation of matrix element
      • setXAnchor

        public void setXAnchor​(Anchor anchor)
        Sets the anchor point on X orientation of matrix element.
        Parameters:
        anchor - the anchor point on X orientation of matrix element
      • getYAnchor

        public Anchor getYAnchor()
        Returns the anchor point on Y orientation of matrix element.
        Returns:
        the anchor point on Y orientation of matrix element
      • setYAnchor

        public void setYAnchor​(Anchor anchor)
        Sets the anchor point on Y orientation of matrix element.
        Parameters:
        anchor - the anchor point on Y orientation of matrix element
      • getBorderRadius

        public int getBorderRadius()
        Returns the bar border radius (in pixels).
        Returns:
        the bar border radius (in pixels).
      • isBorderRadiusAsObject

        public boolean isBorderRadiusAsObject()
        Returns true if the border width is defined as BarBorderRadius.
        Returns:
        true if the border width is defined as BarBorderRadius
      • setBorderRadius

        public void setBorderRadius​(int borderRadius)
        Sets the border radius (in pixels).
        Parameters:
        borderRadius - the border radius (in pixels).
      • setBorderRadius

        public void setBorderRadius​(BarBorderRadius borderRadius)
        Sets the border radius (in pixels).
        Parameters:
        borderRadius - the border radius (in pixels).
      • getBorderWidth

        public int getBorderWidth()
        Returns the border width of the dataset item in pixels.
        Overrides:
        getBorderWidth in class CommonElementOptions
        Returns:
        the border width of the dataset item in pixels.
      • getBorderWidthAsObject

        public BarBorderWidth getBorderWidthAsObject()
        Returns the border width of the dataset item in pixels as BarBorderWidth.
        Returns:
        the border width of the dataset item in pixels as BarBorderWidth.
      • isBorderWidthAsObject

        public boolean isBorderWidthAsObject()
        Returns true if the border width is defined as BarBorderWidth.
        Returns:
        true if the border width is defined as BarBorderWidth
      • setBorderWidth

        public void setBorderWidth​(BarBorderWidth borderWidth)
        Sets the border width (in pixels).
        Parameters:
        borderWidth - the border width (in pixels).