continue;
}
final Millisecond t = new Millisecond(tmpDate);
ChartEnumMinMaxHelper chartEnum = ChartEnumMinMaxHelper.getByFieldAndType(field, "min");
Method method = m.getClass().getMethod(chartEnum.getMethod());
Number n = (Number) method.invoke(m);
serieMin.add(t, n);
chartEnum = ChartEnumMinMaxHelper.getByFieldAndType(field, "max");
method = m.getClass().getMethod(chartEnum.getMethod());
n = (Number) method.invoke(m);
serieMax.add(t, n);
} catch (IllegalAccessException ex) {
log.error(ex);
} catch (IllegalArgumentException ex) {
log.error(ex);
} catch (InvocationTargetException ex) {
log.error(ex);
} catch (NoSuchMethodException ex) {
log.error(ex);
} catch (SecurityException ex) {
log.error(ex);
}
}
final ChartEnumMinMaxHelper chartData = ChartEnumMinMaxHelper.getByFieldAndType(field, "min");
final TimeSeriesCollection dataset = new TimeSeriesCollection();
dataset.addSeries(serieMin);
dataset.addSeries(serieMax);
final JFreeChart chart = ChartFactory.createTimeSeriesChart("Max/Min", "", chartData.getUm(), dataset, true, false, false);
final XYPlot plot = (XYPlot) chart.getPlot();
final DateAxis axis = (DateAxis) plot.getDomainAxis();
axis.setDateFormatOverride(new SimpleDateFormat(formatOut));
axis.setVerticalTickLabels(true);