private final static int MAX_WIDTH = 2100;
private final static int MAX_HEIGHT = 2100;
public static RenderedImage getRenderedImage(ReachabilityGraphPanel editor) {
JGraph graph = editor.getGraph();
graph.clearSelection();
Object[] cells = graph.getRoots();
BufferedImage image = null;
if (cells.length > 0) {
Rectangle2D rectangle = graph.getCellBounds(cells);