jfreechart
グラフ画像作成時に、ChartRenderingInfoクラスを生成してパラメタに渡しておくと、image内のchartのサイズ情報等が取得できる。
こんな感じ
ChartRenderingInfo info = new ChartRenderingInfo(); ChartUtilities.writeChartAsJPEG(ostream, chart, GRAPH_WIDTH, GRAPH_HEIGHT, info); info.getDataArea().getWidth();