}
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);
}