I need a way to distinguish when a mouse event occurs in the chart itself and not in the chartPanel (the plot area).
Thanks
I need a way to distinguish when a mouse event occurs in the chart itself and not in the chartPanel (the plot area).
Thanks
パネルからマウス イベントを使用ChartMouseEvent.getEntity()
して、グラフがグラフ エンティティの 1 つの上にあるかどうかを確認できるはずです。ChartMouseEventの API ドキュメントを参照してください。