Class ElementsRectangle

    • Constructor Detail

      • ElementsRectangle

        public ElementsRectangle()
    • Method Detail

      • getBackgroundColor

        public String getBackgroundColor()
        Gets the backgroundColor
        Returns:
        backgroundColor
      • setBackgroundColor

        public void setBackgroundColor​(String backgroundColor)
        Sets the backgroundColor
        Parameters:
        backgroundColor - Bar fill color.
      • getBorderWidth

        public Number getBorderWidth()
        Gets the borderWidth
        Returns:
        borderWidth
      • setBorderWidth

        public void setBorderWidth​(Number borderWidth)
        Sets the borderWidth
        Parameters:
        borderWidth - Bar stroke width.
      • getBorderColor

        public String getBorderColor()
        Gets the borderColor
        Returns:
        borderColor
      • setBorderColor

        public void setBorderColor​(String borderColor)
        Sets the borderColor
        Parameters:
        borderColor - Bar stroke color.
      • getBorderSkipped

        public String getBorderSkipped()
        Gets the borderSkipped
        Returns:
        borderSkipped
      • setBorderSkipped

        public void setBorderSkipped​(String borderSkipped)
        Sets the borderSkipped
        Parameters:
        borderSkipped - Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
      • encode

        public String encode()
                      throws IOException
        Write the rectangle options of Elements
        Returns:
        options as JSON object
        Throws:
        IOException - If an I/O error occurs