org.jfree.chart.event.OverlayChangeEvent Java Examples

The following examples show how to use org.jfree.chart.event.OverlayChangeEvent. 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: AbstractOverlay.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #2
Source File: AbstractOverlay.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #3
Source File: AbstractOverlay.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #4
Source File: AbstractOverlay.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #5
Source File: AbstractOverlay.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #6
Source File: AbstractOverlay.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #7
Source File: AbstractOverlay.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
        }
    }
}
 
Example #8
Source File: TaChartCanvas.java    From TAcharting with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void overlayChanged(OverlayChangeEvent event) {
    draw();
}
 
Example #9
Source File: ChartPanel.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #10
Source File: AbstractOverlay.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #11
Source File: AbstractOverlay.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #12
Source File: ChartPanel.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #13
Source File: AbstractOverlay.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #14
Source File: ChartPanel.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #15
Source File: AbstractOverlay.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #16
Source File: ChartPanel.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #17
Source File: AbstractOverlay.java    From ECG-Viewer with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #18
Source File: AbstractChartPanel.java    From rapidminer-studio with GNU Affero General Public License v3.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 * 
 * @param event
 *            the event.
 * 
 * @since 1.0.13
 */

@Override
public void overlayChanged(OverlayChangeEvent event) {
	repaint();
}
 
Example #19
Source File: ChartPanel.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #20
Source File: AbstractOverlay.java    From SIMVA-SoS with Apache License 2.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #21
Source File: ChartPanel.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}
 
Example #22
Source File: AbstractOverlay.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sends a default {@link ChartChangeEvent} to all registered listeners.
 * <P>
 * This method is for convenience only.
 */
public void fireOverlayChanged() {
    OverlayChangeEvent event = new OverlayChangeEvent(this);
    notifyListeners(event);
}
 
Example #23
Source File: ChartCanvas.java    From jfreechart-fx with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the chart canvas.
 *
 * @param event  the event.
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    draw();
}
 
Example #24
Source File: ChartPanel.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Handles a change to an overlay by repainting the panel.
 *
 * @param event  the event.
 *
 * @since 1.0.13
 */
@Override
public void overlayChanged(OverlayChangeEvent event) {
    repaint();
}