org.jfree.chart.event.RendererChangeListener Java Examples

The following examples show how to use org.jfree.chart.event.RendererChangeListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Cardumen_006_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #2
Source File: jKali_001_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #3
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #4
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #5
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #6
Source File: 1_CategoryPlot.java    From SimFix with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #7
Source File: jMutRepair_0021_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #8
Source File: jMutRepair_0021_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #9
Source File: jMutRepair_0030_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #10
Source File: CategoryPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw
            // 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);
    }
}
 
Example #11
Source File: patch1-Chart-26-jMutRepair_patch1-Chart-26-jMutRepair_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #12
Source File: patch1-Chart-26-jMutRepair_patch1-Chart-26-jMutRepair_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #13
Source File: CategoryPlot.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #14
Source File: Nopol2017_005_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #15
Source File: JGenProg2017_005_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #16
Source File: JGenProg2017_005_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #17
Source File: patch1-Chart-26-jMutRepair_patch1-Chart-26-jMutRepair_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #18
Source File: CategoryPlot.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * 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 {
            // this should never happen with the existing code, but throw
            // 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);
    }
}
 
Example #19
Source File: JGenProg2017_0081_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #20
Source File: Cardumen_00243_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #21
Source File: Chart_19_CategoryPlot_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #22
Source File: Cardumen_00243_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #23
Source File: Chart_14_CategoryPlot_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #24
Source File: CategoryPlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #25
Source File: CategoryPlot.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * 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 {
            // this should never happen with the existing code, but throw
            // 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);
    }
}
 
Example #26
Source File: Cardumen_00143_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #27
Source File: patch1-Chart-26-jMutRepair_patch1-Chart-26-jMutRepair_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #28
Source File: Nopol2017_005_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Receives notification of a renderer change event.
 *
 * @param event  the event.
 */
public void rendererChanged(RendererChangeEvent event) {
    Plot parent = getParent();
    if (parent != null) {
        if (parent instanceof RendererChangeListener) {
            RendererChangeListener rcl = (RendererChangeListener) parent;
            rcl.rendererChanged(event);
        }
        else {
            // this should never happen with the existing code, but throw 
            // 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);
    }
}
 
Example #29
Source File: AbstractRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Registers an object to receive notification of changes to the renderer.
 *
 * @param listener  the listener (<code>null</code> not permitted).
 */
public void addChangeListener(RendererChangeListener listener) {
    if (listener == null) {
        throw new IllegalArgumentException("Null 'listener' argument.");   
    }
    this.listenerList.add(RendererChangeListener.class, listener);
}
 
Example #30
Source File: AbstractRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Notifies all registered listeners that the renderer has been modified.
 *
 * @param event  information about the change event.
 */
public void notifyListeners(RendererChangeEvent event) {

    Object[] ls = this.listenerList.getListenerList();
    for (int i = ls.length - 2; i >= 0; i -= 2) {
        if (ls[i] == RendererChangeListener.class) {
            ((RendererChangeListener) ls[i + 1]).rendererChanged(event);
        }
    }

}