Interface HasBorder<T>

Type Parameters:
T - origin class type
All Known Implementing Classes:
AbstractEnhancedLabel, AbstractItemStyle, AbstractLegend, AbstractLegend.SelectorLabel, AbstractLegend.TextStyle, AxisLabel, BarSeries.BackgroundStyle, BarSeries.ItemStyle, GaugeSeries.AbstractGaugeText, GaugeSeries.Detail, GaugeSeries.Title, HasAxisName.NameTextStyle, ItemStyleWithDecal, Label, Legend, LineSeries.EndLabel, Radar.AxisName, RichStyle, ScrollableLegend, Title

public interface HasBorder<T>
A component that has border.
  • Method Details

    • getBorderColor

      Color getBorderColor()
      Returns:
      border color
    • setBorderColor

      void setBorderColor(Color borderColor)
      Sets a border color or replaces an existing one.
      Parameters:
      borderColor - color to set
    • withBorderColor

      default T withBorderColor(Color borderColor)
      Parameters:
      borderColor - color to set
      Returns:
      this
      See Also:
    • getBorderWidth

      Integer getBorderWidth()
      Returns:
      border width in pixels
    • setBorderWidth

      void setBorderWidth(Integer borderWidth)
      Sets a border width or replaces an existing one.
      Parameters:
      borderWidth - border width in pixels
    • withBorderWidth

      default T withBorderWidth(Integer borderWidth)
      Parameters:
      borderWidth - border width in pixels
      Returns:
      this
      See Also:
    • getBorderRadius

      Integer getBorderRadius()
      Returns:
      border radius of the text fragment
    • setBorderRadius

      void setBorderRadius(Integer borderRadius)
      Sets a border radius of the text fragment or replaces an existing one.
      Parameters:
      borderRadius - border radius to set in pixels
    • withBorderRadius

      default T withBorderRadius(Integer borderRadius)
      Parameters:
      borderRadius - border radius to set in pixels
      Returns:
      this
      See Also: