Class ADXRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.financial.ADXRenderer
- All Implemented Interfaces:
ChartRenderer
ADXRenderer - Average Directional Index
Professional ADX indicator renderer for trend strength measurement. Displays ADX line with +DI and -DI directional indicators.
Features:
- ADX Line: Measures trend strength (0-100 scale)
- +DI Line: Positive directional indicator
- -DI Line: Negative directional indicator
- Threshold Zones: < 25 (weak), > 25 (strong), > 50 (very strong)
Data Requirements:
Requires OHLC data with min (low) and max (high) fields.
- Since:
- 2026-01-01
- 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 g, ChartModel model, PlotContext context) Implementation-specific drawing logic.double[]getPreferredYRange(ChartModel model) Optional Y-range override for autoscaling.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, renderEmptyState, supportsEmptyState
-
Constructor Details
-
ADXRenderer
public ADXRenderer()
-
-
Method Details
-
drawData
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-
getPreferredYRange
Description copied from interface:ChartRendererOptional Y-range override for autoscaling.Renderers may return a {minY, maxY} array when the visible range should be based on derived data rather than the model's raw Y-values (e.g. indicators like MACD).
- Parameters:
model- the layer model- Returns:
- {minY, maxY} or null to use model Y-values
-