Class StatisticalErrorBarRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.statistical.StatisticalErrorBarRenderer
- All Implemented Interfaces:
ChartRenderer
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
-
Field Summary
Fields inherited from class BaseRenderer
PIXEL_BUF, PIXEL_BUF4 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawData(Graphics2D g2, ChartModel model, PlotContext context) Implementation-specific drawing logic.voidsetCapWidth(float capWidth) Sets the cap width in logical pixels (scaled for HiDPI).voidsetShowHorizontal(boolean showHorizontal) Sets whether horizontal error bars (using weight as +/- x error) are rendered.voidsetShowVertical(boolean showVertical) Sets whether vertical error bars (using min/max) are rendered.Methods inherited from class BaseRenderer
drawHighlightPoint, drawI18nLabel, drawLabel, getArc, getCachedFont, getCachedGradient, getCachedStroke, getCachedStroke, getCachedStroke, getCubicCurve, getEllipse, getId, getLayerIndex, getLegendColor, getLine, getName, getPathCache, getPointAt, getRect, getRoundRectangle, getSeriesColor, getSeriesStroke, getTheme, getTooltipText, isLegendRequired, isMultiColor, pBuffer, pBuffer4, render, resolveTheme, seriesOrBase, setLayerIndex, setMultiColor, setTheme, setupQualityHints, themeAccent, themeAxisLabel, themeBackground, themeBearish, themeBullish, themeForeground, themeGrid, themeSeriesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChartRenderer
clearHover, createContext, getFocusValues, getPreferredYRange, renderEmptyState, supportsEmptyState
-
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
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-