Class BorderRadiusItem

  • All Implemented Interfaces:
    IsBorderRadius

    public final class BorderRadiusItem
    extends AbstractNode
    implements IsBorderRadius
    Defines the border radius for legend item element, applies the corner radius to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight).
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • set

        public void set​(int borderRadius)
        Sets the border radius size to all corners of the rectangle.
        Parameters:
        borderRadius - border radius to apply to all corners of the rectangle.
      • setTopLeft

        public void setTopLeft​(int borderRadius)
        Sets the border radius for top-left corner of the rectangle, in pixel.
        Parameters:
        borderRadius - the border radius for top-left corner of the rectangle, in pixel
      • getTopLeft

        public int getTopLeft()
        Returns the border radius for top-left corner of the rectangle, in pixel.
        Specified by:
        getTopLeft in interface IsBorderRadius
        Returns:
        the border radius for top-left corner of the rectangle, in pixel.
      • setTopRight

        public void setTopRight​(int borderRadius)
        Sets the border radius for top-right corner of the rectangle, in pixel.
        Parameters:
        borderRadius - the border radius for top-right corner of the rectangle, in pixel
      • getTopRight

        public int getTopRight()
        Returns the border radius for top-right corner of the rectangle, in pixel.
        Specified by:
        getTopRight in interface IsBorderRadius
        Returns:
        the border radius for top-right corner of the rectangle, in pixel.
      • setBottomLeft

        public void setBottomLeft​(int borderRadius)
        Sets the border radius for bottom-left corner of the rectangle, in pixel.
        Parameters:
        borderRadius - the border radius for bottom-left corner of the rectangle, in pixel
      • getBottomLeft

        public int getBottomLeft()
        Returns the border radius for bottom-left corner of the rectangle, in pixel.
        Specified by:
        getBottomLeft in interface IsBorderRadius
        Returns:
        the border radius for bottom-left corner of the rectangle, in pixel.
      • setBottomRight

        public void setBottomRight​(int borderRadius)
        Sets the border radius for bottom-right corner of the rectangle, in pixel.
        Parameters:
        borderRadius - the border radius for bottom-right corner of the rectangle, in pixel
      • getBottomRight

        public int getBottomRight()
        Returns the border radius for bottom-right corner of the rectangle, in pixel.
        Specified by:
        getBottomRight in interface IsBorderRadius
        Returns:
        the border radius for bottom-right corner of the rectangle, in pixel.
      • isConsistent

        public boolean isConsistent()
        Returns true if the item contains defined values.
        Returns:
        true if the item contains defined values.