use of org.jfree.chart.event.RendererChangeListener in project SIMVA-SoS by SESoS.
the class CategoryPlot method rendererChanged.
/**
* Receives notification of a renderer change event.
*
* @param event the event.
*/
@Override
public void rendererChanged(RendererChangeEvent event) {
Plot parent = getParent();
if (parent != null) {
if (parent instanceof RendererChangeListener) {
RendererChangeListener rcl = (RendererChangeListener) parent;
rcl.rendererChanged(event);
} else {
// an exception in case future changes make it possible...
throw new RuntimeException("The renderer has changed and I don't know what to do!");
}
} else {
configureRangeAxes();
PlotChangeEvent e = new PlotChangeEvent(this);
notifyListeners(e);
}
}
Aggregations