return evaluateCondition(shapeFilledCondition, series, item);
}
}
private boolean evaluateCondition (String cond, int series, int item) {
XYDataset ds = getPlot().getDataset();
Map vars = new HashMap();
vars.put("s", new Double(series));
vars.put("i", new Double(item));
vars.put("x", new Double(ds.getXValue(series,item)));
vars.put("y", new Double(ds.getYValue(series,item)));
double result = Expr.eval("cond("+cond+", 1, -1)", vars);
return (result > 0);
}