Java Code Examples for org.jfree.chart.title.TextTitle#addChangeListener()

The following examples show how to use org.jfree.chart.title.TextTitle#addChangeListener() . 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_00141_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 2
Source File: JFreeChart.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.  If you do not want a title for the
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 *
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 3
Source File: JGenProg2015_000_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 4
Source File: JGenProg2015_000_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 5
Source File: JGenProg2017_003_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 6
Source File: JGenProg2017_003_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 7
Source File: JGenProg2017_00104_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 8
Source File: JGenProg2017_00104_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 9
Source File: Cardumen_003_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 10
Source File: Cardumen_003_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 11
Source File: JFreeChart.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 12
Source File: Cardumen_00141_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 13
Source File: Cardumen_0077_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 14
Source File: Cardumen_0077_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 15
Source File: Cardumen_00241_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 16
Source File: JFreeChart.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.  If you do not want a title for the
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 *
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 17
Source File: Cardumen_00193_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent} 
 * to all registered listeners.  If you do not want a title for the 
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 * 
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 18
Source File: JFreeChart.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.  If you do not want a title for the
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 *
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 19
Source File: JFreeChart.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.  If you do not want a title for the
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 *
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}
 
Example 20
Source File: JFreeChart.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Sets the main title for the chart and sends a {@link ChartChangeEvent}
 * to all registered listeners.  If you do not want a title for the
 * chart, set it to <code>null</code>.  If you want more than one title on
 * a chart, use the {@link #addSubtitle(Title)} method.
 *
 * @param title  the title (<code>null</code> permitted).
 *
 * @see #getTitle()
 */
public void setTitle(TextTitle title) {
    if (this.title != null) {
        this.title.removeChangeListener(this);
    }
    this.title = title;
    if (title != null) {
        title.addChangeListener(this);
    }
    fireChartChanged();
}