Package org.jrobin.graph

Examples of org.jrobin.graph.RrdGraph


      graphTemplate.setVariable("start", start);
      graphTemplate.setVariable("end", end);
      graphTemplate.setVariable("rrd", _rrdPath);
      // create graph finally
      RrdGraphDef gDef = graphTemplate.getRrdGraphDef();
      RrdGraph graph = new RrdGraph(gDef);
      return graph.getRrdGraphInfo().getBytes();
    }
    catch (Exception e)
    {
      _logger.warn("Unable to create graph", e);
      return null;
View Full Code Here


      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      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) {
View Full Code Here

  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());
View Full Code Here

  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());
View Full Code Here

      rrdGraphDef.comment("START: " + new Date(t1 * 1000L) + "\\r");
      rrdGraphDef.comment("END: " + new Date(t2 * 1000L) + "\\r");
      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) {
View Full Code Here

TOP

Related Classes of org.jrobin.graph.RrdGraph

Copyright © 2018 www.massapicom. 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.