Example usage for org.jfree.chart.axis NumberAxis setPlot

List of usage examples for org.jfree.chart.axis NumberAxis setPlot

Introduction

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

Prototype

public void setPlot(Plot plot) 

Source Link

Document

Sets a reference to the plot that the axis is assigned to.

Usage

From source file:de.laures.cewolf.jfree.ThermometerPlot.java

/**
 * Creates a new thermometer plot, using default attributes where necessary.
 *
 * @param dataset  the data set./* www  . j a v  a  2  s. c om*/
 */
public ThermometerPlot(ValueDataset dataset) {
    super();

    this.padding = new RectangleInsets(UnitType.RELATIVE, 0.05, 0.05, 0.05, 0.05);
    this.dataset = dataset;
    if (dataset != null) {
        dataset.addChangeListener(this);
    }
    NumberAxis axis = new NumberAxis(null);
    axis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    axis.setAxisLineVisible(false);
    axis.setPlot(this);
    axis.addChangeListener(this);
    this.rangeAxis = axis;
    setAxisRange();
}