/** * Sends a {@link ChartChangeEvent} to all registered listeners. * * @param event information about the event that triggered the * notification. */ protected void notifyListeners(OverlayChangeEvent event) { Object[] listeners = this.changeListeners.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == OverlayChangeListener.class) { ((OverlayChangeListener) listeners[i + 1]).overlayChanged( event); } } }
public void addChangeListener(OverlayChangeListener overlayChangeListener) { }
public void removeChangeListener(OverlayChangeListener overlayChangeListener) { }
/** * Registers an object for notification of changes to the overlay. * * @param listener the listener (<code>null</code> not permitted). * * @see #removeChangeListener(OverlayChangeListener) */ public void addChangeListener(OverlayChangeListener listener) { if (listener == null) { throw new IllegalArgumentException("Null 'listener' argument."); } this.changeListeners.add(OverlayChangeListener.class, listener); }
/** * Deregisters an object for notification of changes to the overlay. * * @param listener the listener (<code>null</code> not permitted) * * @see #addChangeListener(OverlayChangeListener) */ public void removeChangeListener(OverlayChangeListener listener) { if (listener == null) { throw new IllegalArgumentException("Null 'listener' argument."); } this.changeListeners.remove(OverlayChangeListener.class, listener); }
/** * Registers a change listener with the overlay. * * @param listener the listener. */ public void addChangeListener(OverlayChangeListener listener);
/** * Deregisters a listener from the overlay. * * @param listener the listener. */ public void removeChangeListener(OverlayChangeListener listener);
/** * Registers an object for notification of changes to the overlay. * * @param listener the listener (<code>null</code> not permitted). * * @see #removeChangeListener(OverlayChangeListener) */ public void addChangeListener(OverlayChangeListener listener) { ParamChecks.nullNotPermitted(listener, "listener"); this.changeListeners.add(OverlayChangeListener.class, listener); }
/** * Deregisters an object for notification of changes to the overlay. * * @param listener the listener (<code>null</code> not permitted) * * @see #addChangeListener(OverlayChangeListener) */ public void removeChangeListener(OverlayChangeListener listener) { ParamChecks.nullNotPermitted(listener, "listener"); this.changeListeners.remove(OverlayChangeListener.class, listener); }
/** * Registers an object for notification of changes to the overlay. * * @param listener the listener ({@code null} not permitted). * * @see #removeChangeListener(OverlayChangeListener) */ public void addChangeListener(OverlayChangeListener listener) { Args.nullNotPermitted(listener, "listener"); this.changeListeners.add(OverlayChangeListener.class, listener); }
/** * Deregisters an object for notification of changes to the overlay. * * @param listener the listener ({@code null} not permitted) * * @see #addChangeListener(OverlayChangeListener) */ public void removeChangeListener(OverlayChangeListener listener) { Args.nullNotPermitted(listener, "listener"); this.changeListeners.remove(OverlayChangeListener.class, listener); }