Class StatisticalErrorBarRenderer

java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.statistical.StatisticalErrorBarRenderer
All Implemented Interfaces:
ChartRenderer

public class StatisticalErrorBarRenderer extends BaseRenderer
Statistical Error Bar Renderer (JDK 25 Standard). Extends plots with horizontal and vertical error bars. Supports standard deviation, confidence intervals and custom ranges. Data Mapping (ChartPoint): x → Central X position y → Central Y position min → Lower bound (Y) for vertical error max → Upper bound (Y) for vertical error weight → Horizontal error extent (+/-) from x Features: - Vertical and horizontal error bars - Customizable cap width - High-DPI support - Clipping optimization
Since:
2025-06-15
Version:
1.0.0
Author:
Arber Gashi
  • Constructor Details

    • StatisticalErrorBarRenderer

      public StatisticalErrorBarRenderer()
  • Method Details

    • setShowVertical

      public void setShowVertical(boolean showVertical)
      Sets whether vertical error bars (using min/max) are rendered.
    • setShowHorizontal

      public void setShowHorizontal(boolean showHorizontal)
      Sets whether horizontal error bars (using weight as +/- x error) are rendered.
    • setCapWidth

      public void setCapWidth(float capWidth)
      Sets the cap width in logical pixels (scaled for HiDPI).
    • 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