List of usage examples for org.jfree.chart.plot CategoryPlot axisChanged
@Override public void axisChanged(AxisChangeEvent event)
From source file:edu.gmu.cs.sim.util.media.chart.BarChartGenerator.java
/** Sets the name of the Y Axis label. */ public void setYAxisLabel(String val) { CategoryPlot xyplot = (CategoryPlot) (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.BarChartGenerator.java
/** Sets the name of the X Axis label. */ public void setXAxisLabel(String val) { CategoryPlot xyplot = (CategoryPlot) (chart.getPlot()); xyplot.getDomainAxis().setLabel(val); xyplot.axisChanged(new AxisChangeEvent(xyplot.getDomainAxis())); xLabel.setValue(val); }