Examples of RrdException


Examples of org.jrobin.core.RrdException

  }

  private void parseHRule(RrdGraphDef graphDef, String word) throws RrdException {
    String[] tokens1 = new ColonSplitter(word).split();
    if (tokens1.length < 2 || tokens1.length > 3) {
      throw new RrdException("Invalid HRULE statement: " + word);
    }
    String[] tokens2 = tokens1[1].split("#");
    if (tokens2.length != 2) {
      throw new RrdException("Invalid HRULE statement: " + word);
    }
    double value = parseDouble(tokens2[0]);
    Paint color = Util.parseColor(tokens2[1]);
    graphDef.hrule(value, color, tokens1.length == 3 ? tokens1[2] : null);
  }
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.