コード例 #1
0
ファイル: ValueAxisMrtg.cs プロジェクト: mujing/rrd4net
 internal ValueAxisMrtg(RrdGraph rrdGraph)
 {
    this.im = rrdGraph.im;
    this.gdef = rrdGraph.gdef;
    this.worker = rrdGraph.worker;
    im.unit = gdef.unit;
 }
コード例 #2
0
 internal ValueAxisLogarithmic(RrdGraph rrdGraph)
 {
    this.rrdGraph = rrdGraph;
    this.im = rrdGraph.im;
    this.gdef = rrdGraph.gdef;
    this.worker = rrdGraph.worker;
 }
コード例 #3
0
ファイル: LegendComposer.cs プロジェクト: mujing/rrd4net
 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();
 }
コード例 #4
0
ファイル: RrdGraph.cs プロジェクト: mujing/rrd4net
 /**
  * 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;
    }
 }