Example usage for org.jfree.chart.axis ExtendedDateAxis setTickLabelsVisible

List of usage examples for org.jfree.chart.axis ExtendedDateAxis setTickLabelsVisible

Introduction

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

Prototype

public void setTickLabelsVisible(boolean flag) 

Source Link

Document

Sets the flag that determines whether or not the tick labels are visible and sends an AxisChangeEvent to all registered listeners.

Usage

From source file:no.met.jtimeseries.marinogram.MarinogramWrapper.java

@Override
public XYPlot getPlot() throws ParseException {
    //extra check to avoid add plots on multiple getPlot calls
    if (combiPlot != null) {
        return combiPlot;
    }/*w  ww.  j  a  v a 2  s.  c o m*/
    for (int i = plots.size() - 1; i >= 0; i--) {
        MarinogramPlot marinogramPlot = plots.get(i);
        XYPlot plot = marinogramPlot.getPlot();

        if (combiPlot == null) {
            // create a stacked plot with the domain axis of the first plot
            combiPlot = new StackedXYPlot(plot.getDomainAxis());
            combiPlot.setGap(0.0d);
        }
        if (plot != null) {
            ExtendedDateAxis xAxis = (ExtendedDateAxis) plot.getDomainAxis();
            xAxis.setAxislineExtended(true);

            if (i == 0) {
                xAxis.setTickLabelsVisible(true);
            }
            combiPlot.add(plot, marinogramPlot.getHeight());
        }
    }

    return combiPlot;
}