Class LiveFFTRenderer
java.lang.Object
com.arbergashi.charts.render.BaseRenderer
com.arbergashi.charts.render.analysis.LiveFFTRenderer
- All Implemented Interfaces:
ChartRenderer
Live FFT renderer (JDK 25 standard).
Transforms a time signal into the frequency domain and visualizes it.
Ideal for acoustics, vibration analysis, and signal processing.
- 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 TypeMethodDescriptionstatic double[]computeFFT(double[] timeSignal) Helper for a simple FFT (Cooley-Tukey).protected voiddrawData(Graphics2D g2, ChartModel model, PlotContext context) Implementation-specific drawing logic.voidsetAsBars(boolean asBars) 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
-
LiveFFTRenderer
public LiveFFTRenderer()
-
-
Method Details
-
computeFFT
public static double[] computeFFT(double[] timeSignal) Helper for a simple FFT (Cooley-Tukey). Provided as a placeholder for internal logic. -
setAsBars
public void setAsBars(boolean asBars) -
drawData
Description copied from class:BaseRendererImplementation-specific drawing logic. Must follow Zero-Allocation rules.- Specified by:
drawDatain classBaseRenderer
-