Example usage for org.jfree.chart.plot XYPlot axisChanged

List of usage examples for org.jfree.chart.plot XYPlot axisChanged

Introduction

In this page you can find the example usage for org.jfree.chart.plot XYPlot axisChanged.

Prototype

@Override
public void axisChanged(AxisChangeEvent event) 

Source Link

Document

Receives notification of a change to one of the plot's axes.

Usage

From source file:edu.gmu.cs.sim.util.media.chart.XYChartGenerator.java

/** Sets the name of the Y Axis label. */
public void setYAxisLabel(String val) {
    XYPlot xyplot = (XYPlot) (chart.getPlot());
    xyplot.getRangeAxis().setLabel(val);
    xyplot.axisChanged(new AxisChangeEvent(xyplot.getRangeAxis()));
    yLabel.setValue(val);
}

From source file:edu.gmu.cs.sim.util.media.chart.XYChartGenerator.java

/** Sets the name of the X Axis label. */
public void setXAxisLabel(String val) {
    XYPlot xyplot = (XYPlot) (chart.getPlot());
    xyplot.getDomainAxis().setLabel(val);
    xyplot.axisChanged(new AxisChangeEvent(xyplot.getDomainAxis()));
    xLabel.setValue(val);
}