Java Swing - JFreeChart app works slowly

后端 未结 1 1195
忘了有多久
忘了有多久 2021-01-22 15:06

I create JFreeChart program that can:

  • move points of splines
  • don\'t allow to cross black splines (boundary splines)
  • create new splines in real-ti
相关标签:
1条回答
  • 2021-01-22 15:19

    The XYSplineRenderer "connects data points with natural cubic splines." Not unexpectedly, its performance scales poorly for thousands points. If the goal is to render smoothed data, it may be advantageous to do the interpolation in the background, as suggested here, and revert to the parent XYLineAndShapeRenderer for rendering only.

    In addition, scores of curves, each having hundreds of points, may be difficult to distinguish visually. Consider controlling the visibility of related series, a shown in this example that uses JCheckBox to toggle the display of individual series.

    0 讨论(0)
提交回复
热议问题