Example usage for org.jfree.chart.axis QuarterDateFormat QuarterDateFormat

List of usage examples for org.jfree.chart.axis QuarterDateFormat QuarterDateFormat

Introduction

In this page you can find the example usage for org.jfree.chart.axis QuarterDateFormat QuarterDateFormat.

Prototype

public QuarterDateFormat() 

Source Link

Document

Creates a new instance for the default time zone.

Usage

From source file:ec.nbdemetra.chainlinking.outlineview.ChainLinkingChart.java

private void configureAxis(XYPlot plot) {
    NumberAxis xAxis = new NumberAxis();
    xAxis.setAutoRangeIncludesZero(false);
    plot.setRangeAxis(xAxis);/*from w  w w.  jav a 2s.  c  o  m*/

    QuarterDateFormat qdf = new QuarterDateFormat();
    DateAxis dateAxis = new DateAxis();
    dateAxis.setTickMarkPosition(DateTickMarkPosition.MIDDLE);
    dateAxis.setDateFormatOverride(qdf);
    plot.setDomainAxis(dateAxis);
}