Java Code Examples for org.jfree.chart.plot.Crosshair#addPropertyChangeListener()

The following examples show how to use org.jfree.chart.plot.Crosshair#addPropertyChangeListener() . 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: CrosshairOverlay.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 2
Source File: CrosshairOverlay.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 3
Source File: CrosshairOverlay.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 4
Source File: MultiAxesCrosshairOverlay.java    From rapidminer-studio with GNU Affero General Public License v3.0 5 votes vote down vote up
public void addRangeCrosshair(int axisIdx, Crosshair crosshair) {
	while (rangeCrosshairs.size() < axisIdx + 1) {
		rangeCrosshairs.add(new ArrayList<Crosshair>());
	}

	rangeCrosshairs.get(axisIdx).add(crosshair);
	crosshair.addPropertyChangeListener(this);
}
 
Example 5
Source File: CrosshairOverlay.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 6
Source File: CrosshairOverlay.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    if (crosshair == null) {
        throw new IllegalArgumentException("Null 'crosshair' argument.");
    }
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 7
Source File: CrosshairOverlay.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 8
Source File: CrosshairOverlay.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Adds a crosshair against the range axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 */
public void addRangeCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.yCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 9
Source File: CrosshairOverlay.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 10
Source File: CrosshairOverlay.java    From ccu-historian with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 11
Source File: CrosshairOverlay.java    From SIMVA-SoS with Apache License 2.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 12
Source File: CrosshairOverlay.java    From ECG-Viewer with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 13
Source File: CrosshairOverlay.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    if (crosshair == null) {
        throw new IllegalArgumentException("Null 'crosshair' argument.");
    }
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 14
Source File: CrosshairOverlay.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}
 
Example 15
Source File: CrosshairOverlay.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Adds a crosshair against the domain axis and sends an
 * {@link OverlayChangeEvent} to all registered listeners.
 *
 * @param crosshair  the crosshair (<code>null</code> not permitted).
 *
 * @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
 * @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
 */
public void addDomainCrosshair(Crosshair crosshair) {
    ParamChecks.nullNotPermitted(crosshair, "crosshair");
    this.xCrosshairs.add(crosshair);
    crosshair.addPropertyChangeListener(this);
    fireOverlayChanged();
}