MWC.GUI.JFreeChart.DepthFormatter.java Source code

Java tutorial

Introduction

Here is the source code for MWC.GUI.JFreeChart.DepthFormatter.java

Source

/*
 *    Debrief - the Open Source Maritime Analysis Application
 *    http://debrief.info
 *
 *    (C) 2000-2014, PlanetMayo Ltd
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the Eclipse Public License v1.0
 *    (http://www.eclipse.org/legal/epl-v10.html)
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 */
package MWC.GUI.JFreeChart;

import java.io.Serializable;

import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.plot.XYPlot;

public class DepthFormatter implements formattingOperation, Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public void format(final XYPlot thePlot) {
        final NumberAxis theAxis = (NumberAxis) thePlot.getRangeAxis();
        theAxis.setInverted(true);
    }

}