internal ValueAxisMrtg(RrdGraph rrdGraph) { this.im = rrdGraph.im; this.gdef = rrdGraph.gdef; this.worker = rrdGraph.worker; im.unit = gdef.unit; }
internal ValueAxis(RrdGraph rrdGraph) { this.rrdGraph = rrdGraph; this.im = rrdGraph.im; this.gdef = rrdGraph.gdef; this.worker = rrdGraph.worker; }
internal ValueAxisLogarithmic(RrdGraph rrdGraph) { this.rrdGraph = rrdGraph; this.im = rrdGraph.im; this.gdef = rrdGraph.gdef; this.worker = rrdGraph.worker; }
internal LegendComposer(RrdGraph rrdGraph, int legX, int legY, int legWidth) { LegendComposer.gdef = rrdGraph.gdef; LegendComposer.worker = rrdGraph.worker; LegendComposer.legX = legX; LegendComposer.legY = legY; LegendComposer.legWidth = legWidth; interlegendSpace = rrdGraph.getInterlegendSpace(); leading = rrdGraph.getLeading(); smallLeading = rrdGraph.getSmallLeading(); boxSpace = rrdGraph.getBoxSpace(); }
/** * 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; } }