0
mxGraphComponent
にcreateComponents
をオーバーライドしたグラフがあり、すべての頂点をJTable
としてレンダリングしています。それが唯一の入力としてmxGraph
を取得します。私はmxCellRenderer.create*Document
はそれを扱うことができなかったことを期待しながら、私はそれを見ていること、それは明らかにできないカスタム頂点コンポーネントを含むJGraphXグラフを画像にエクスポートする
BufferedImage image = mxCellRenderer.createBufferedImage(graphComponent.getGraph(), null, 1.0, null, graphComponent.isAntiAlias(), null);
ImageIO.write(image, "PNG", new File("C:\\Temp\\graph.png"));
で画像を保存する(もちろん、今ことを期待しました、mxGraphComponent
ではなく!)。カスタムレンダラを含むイメージとしてグラフを保存する方法はありますか?