Interface HasMargins<T>

All Known Subinterfaces:
AngularGaugeChart, AngularGaugeChartModel<T>, FunnelChart, FunnelChartModel<T>, GanttChart, GanttChartModel<T>, PieChart, PieChartModel<T>, RadarChart, RadarChartModel<T>, RectangularChart<T>, RectangularChartModel<T>, SerialChart, SeriesBasedChart<T>, SeriesBasedChartModel<T>, SlicedChart<T>, SlicedChartModel<T>, XYChart, XYChartModel<T>
All Known Implementing Classes:
AbstractLegend, AbstractSerialChart, AngularGaugeChartImpl, AngularGaugeChartModelImpl, FunnelChartImpl, FunnelChartModelImpl, GanttChartImpl, GanttChartModelImpl, Legend, PanelsSettings, PieChartImpl, PieChartModelImpl, RadarChartImpl, RadarChartModelImpl, RectangularChartImpl, RectangularChartModelImpl, SerialChartImpl, SerialChartModelImpl, SeriesBasedChartImpl, SlicedChartImpl, SlicedChartModelImpl, StockLegend, StockPanel, XYChartImpl, XYChartModelImpl

public interface HasMargins<T>
  • Method Details

    • getMarginTop

      Integer getMarginTop()
      Returns:
      top spacing
    • setMarginTop

      T setMarginTop(Integer marginTop)
      Sets top spacing. If not set the default value is 10.

      If is used for Legend the default value is 0.

      If is used for RadarChartModelImpl the default value is 0.

      If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is 20.

      If is used for chart based on SlicedChartModelImpl the default value is 10.

      If is used for PanelsSettings the default value is 0.

      Parameters:
      marginTop - top spacing
      Returns:
      object with set top spacing
    • getMarginBottom

      Integer getMarginBottom()
      Returns:
      bottom spacing
    • setMarginBottom

      T setMarginBottom(Integer marginBottom)
      Sets bottom spacing. If not set the default value is 10.

      If is used for Legend default value is 0.

      If is used for RadarChartModelImpl the default value is 0.

      If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is 20.

      If is used for chart based on SlicedChartModelImpl (FunnelChart, PieChart) the default value is 10.

      If is used for PanelsSettings the default value is 0.

      Parameters:
      marginBottom - bottom spacing
      Returns:
      object with set bottom spacing
    • getMarginLeft

      Integer getMarginLeft()
      Returns:
      left-hand spacing
    • setMarginLeft

      T setMarginLeft(Integer marginLeft)
      Sets left-hand spacing.

      marginLeft will be ignored if chart is SerialChart or XYChartModelImpl and AbstractLegend.autoMargins is true.

      If is used for Legend the default value is 20.

      If is used for RadarChartModelImpl the default value is 0.

      If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is 20.

      If is used for chart based on SlicedChartModelImpl the default value is 0.

      If is used for PanelsSettings the default value is 0.

      Parameters:
      marginLeft - left-hand spacing
      Returns:
      object with set left-hand spacing
    • getMarginRight

      Integer getMarginRight()
      Returns:
      right-hand spacing
    • setMarginRight

      T setMarginRight(Integer marginRight)
      Sets right-hand spacing.

      marginRight will be ignored if chart is SerialChart or XYChartModelImpl and AbstractLegend.autoMargins is true.

      If is used for Legend the default value is 20.

      If is used for RadarChartModelImpl the default value is 0.

      If is used for chart based on RectangularChartModelImpl (GanttChart, SerialChart, XYChart) the default value is 20.

      If is used for chart based on SlicedChartModelImpl (FunnelChart, PieChart) the default value is 0.

      If is used for PanelsSettings the default value is 0.

      Parameters:
      marginRight - right-hand spacing
      Returns:
      object with set right-hand spacing