List of usage examples for org.jfree.chart.axis ExtendedDateAxis ExtendedDateAxis
public ExtendedDateAxis(String label)
From source file:no.met.jtimeseries.chart.ChartPlotter.java
/** * Set the default properties of the plot * /* ww w.ja v a 2s .c o m*/ * @param xAxisName * The title of x-axis * @param yAxisName * The title of y-axis */ public void setPlotDefaultProperties(String xAxisName, String yAxisName) { ExtendedDateAxis axis = new ExtendedDateAxis(xAxisName); plot.setDomainAxis(axis); plot.setRangeAxis(new NumberAxis(yAxisName)); plot.setBackgroundPaint(Color.white); plot.setDomainCrosshairVisible(true); plot.setDomainGridlinesVisible(false); plot.setRangeCrosshairVisible(false); // remove plot outlines plot.setOutlineVisible(false); plot.setRangeGridlinesVisible(true); plot.setRangeGridlinePaint(RANGE_GRID_LINE_COLOR); plot.setRangeGridlineStroke(new BasicStroke(1)); }