Interface HasPadding<T>

Type Parameters:
T - origin class type
All Known Implementing Classes:
AbstractEnhancedLabel, AbstractLegend, AbstractLegend.SelectorLabel, AbstractLegend.TextStyle, AbstractSeries.Tooltip, AbstractTooltip, AbstractVisualMap, AxisLabel, ContinuousVisualMap, Emphasis.IconStyle, GaugeSeries.AbstractGaugeText, GaugeSeries.Detail, GaugeSeries.Title, HasAxisName.NameTextStyle, InnerTooltip, Label, Label, Legend, LineSeries.EndLabel, PiecewiseVisualMap, Radar.AxisName, RichStyle, ScrollableLegend, Title, Tooltip

public interface HasPadding<T>
A component that has a space around content.
  • Method Details

    • getPadding

      Padding getPadding()
      Returns:
      space around content
    • setPadding

      void setPadding(Integer padding)
      Sets padding on each of the four sides or replaces an existing one. The unit is px.
      Parameters:
      padding - padding to set
    • setPadding

      void setPadding(Integer vertical, Integer horizontal)
      Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.
      Parameters:
      vertical - top and bottom padding to set
      horizontal - left and right padding to set
    • setPadding

      void setPadding(Integer top, Integer right, Integer bottom, Integer left)
      Sets each of the four paddings separately. The unit is px.
      Parameters:
      top - top padding to set
      right - right padding to set
      bottom - bottom padding to set
      left - left padding to set
    • withPadding

      default T withPadding(Integer padding)
      Parameters:
      padding - padding to set
      Returns:
      this
      See Also:
    • withPadding

      default T withPadding(Integer vertical, Integer horizontal)
      Parameters:
      vertical - top and bottom padding to set
      horizontal - left and right padding to set
      Returns:
      this
      See Also:
    • withPadding

      default T withPadding(Integer top, Integer right, Integer bottom, Integer left)
      Parameters:
      top - top padding to set
      right - right padding to set
      bottom - bottom padding to set
      left - left padding to set
      Returns:
      this
      See Also: