/** * Creates graph from the corresponding {@link RrdGraphDef} object. * * @param gdef Graph definition * * @ Thrown in case of I/O error */ public RrdGraph(RrdGraphDef gdef, RrdDbAccessInterface rrdDbAccess) { DbAccessInterface = rrdDbAccess; this.gdef = gdef; worker = new ImageWorker(1, 1); // Dummy worker, just to start with something try { createGraph(); } finally { worker.dispose(); worker = null; dproc = null; } }