Search in sources :

Example 1 with RendererChangeListener

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);
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent) RendererChangeListener(org.jfree.chart.event.RendererChangeListener)

Aggregations

PlotChangeEvent (org.jfree.chart.event.PlotChangeEvent)1 RendererChangeListener (org.jfree.chart.event.RendererChangeListener)1