Class ParetoRenderer

java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.specialized.ParetoRenderer
All Implemented Interfaces:
ChartRenderer

public class ParetoRenderer extends BaseRenderer
ParetoRenderer - combines bar chart with cumulative line.

Performance notes: Sorting is cached and only recomputed when the model content changes (size / identity hash).

Since:
2026-01-01
Version:
1.0.0
Author:
Arber Gashi
  • Constructor Details

    • ParetoRenderer

      public ParetoRenderer()
  • Method Details

    • drawData

      protected void drawData(Graphics2D g2, ChartModel model, PlotContext context)
      Description copied from class: BaseRenderer
      Implementation-specific drawing logic. Must follow Zero-Allocation rules.
      Specified by:
      drawData in class BaseRenderer
    • setMultiColor

      public ParetoRenderer setMultiColor(boolean enabled)
      Description copied from class: BaseRenderer
      Enables or disables multi-color rendering for supported renderers.
      Overrides:
      setMultiColor in class BaseRenderer
      Parameters:
      enabled - true to enable multi-color mode
      Returns:
      this renderer for chaining