Examples of RrdGraphInfo


Examples of org.jrobin.graph.RrdGraphInfo

      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
      rrdGraphDef.setHeight(height + deltaHeight);
      rrdGraph = new RrdGraph(rrdGraphDef);
      if (deltaWidth == 0 && deltaHeight == 0) {
        RrdGraphInfo info = rrdGraph.getRrdGraphInfo();
        deltaWidth = graphPanel.getWidth() - info.getWidth();
        deltaHeight = graphPanel.getHeight() - info.getHeight();
        if (deltaWidth != 0 && deltaHeight != 0) {
          createRrdGraph(); // recursion is divine!
        }
      }
    }
View Full Code Here

Examples of org.jrobin.graph.RrdGraphInfo

  Object execute() throws RrdException, IOException {
    gdef = getGraphDef();
   
    // create diagram finally
    RrdGraphInfo info = new RrdGraph(gdef).getRrdGraphInfo();
    if (info.getFilename().equals(RrdGraphConstants.IN_MEMORY_IMAGE)) {
      println(new String(info.getBytes()));
    }
    else {
      println(info.getWidth() + "x" + info.getHeight());
      String[] plines = info.getPrintLines();
      for (String pline : plines) {
        println(pline);
      }
      if (info.getImgInfo() != null && info.getImgInfo().length() > 0) {
        println(info.getImgInfo());
      }
    }
    return info;
  }
View Full Code Here

Examples of org.jrobin.graph.RrdGraphInfo

  Object execute() throws RrdException, IOException {
    gdef = getGraphDef();
   
    // create diagram finally
    RrdGraphInfo info = new RrdGraph(gdef).getRrdGraphInfo();
    if (info.getFilename().equals(RrdGraphConstants.IN_MEMORY_IMAGE)) {
      println(new String(info.getBytes()));
    }
    else {
      println(info.getWidth() + "x" + info.getHeight());
      String[] plines = info.getPrintLines();
      for (String pline : plines) {
        println(pline);
      }
      if (info.getImgInfo() != null && info.getImgInfo().length() > 0) {
        println(info.getImgInfo());
      }
    }
    return info;
  }
View Full Code Here

Examples of org.jrobin.graph.RrdGraphInfo

      int width = graphPanel.getWidth(), height = graphPanel.getHeight();
      rrdGraphDef.setWidth(width + deltaWidth);
      rrdGraphDef.setHeight(height + deltaHeight);
      rrdGraph = new RrdGraph(rrdGraphDef);
      if (deltaWidth == 0 && deltaHeight == 0) {
        RrdGraphInfo info = rrdGraph.getRrdGraphInfo();
        deltaWidth = graphPanel.getWidth() - info.getWidth();
        deltaHeight = graphPanel.getHeight() - info.getHeight();
        if (deltaWidth != 0 && deltaHeight != 0) {
          createRrdGraph(); // recursion is divine!
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.