当前位置: 首页>>代码示例>>Java>>正文


Java Title.addChangeListener方法代码示例

本文整理汇总了Java中org.jfree.chart.title.Title.addChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java Title.addChangeListener方法的具体用法?Java Title.addChangeListener怎么用?Java Title.addChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.title.Title的用法示例。


在下文中一共展示了Title.addChangeListener方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a chart subtitle, and notifies registered listeners that the chart has been modified.
 *
 * @param subtitle  the subtitle.
 */
public void addSubtitle(Title subtitle) {

    if (subtitle != null) {
        this.subtitles.add(subtitle);
        subtitle.addChangeListener(this);
        fireChartChanged();
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:15,代码来源:JFreeChart.java

示例2: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a chart subtitle, and notifies registered listeners that the chart 
 * has been modified.
 *
 * @param subtitle  the subtitle (<code>null</code> not permitted).
 * 
 * @see #getSubtitle(int)
 */
public void addSubtitle(Title subtitle) {
    if (subtitle == null) {
        throw new IllegalArgumentException("Null 'subtitle' argument.");
    }
    this.subtitles.add(subtitle);
    subtitle.addChangeListener(this);
    fireChartChanged();
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:17,代码来源:JFreeChart.java

示例3: clone

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Clones the object, and takes care of listeners.
 * Note: caller shall register its own listeners on cloned graph.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException if the chart is not cloneable.
 */
public Object clone() throws CloneNotSupportedException {
    JFreeChart chart = (JFreeChart) super.clone();

    chart.renderingHints = (RenderingHints) this.renderingHints.clone();
    // private boolean borderVisible;
    // private transient Stroke borderStroke;
    // private transient Paint borderPaint;

    if (this.title != null) {
        chart.title = (TextTitle) this.title.clone();
        chart.title.addChangeListener(chart);
    }

    chart.subtitles = new ArrayList();
    for (int i = 0; i < getSubtitleCount(); i++) {
        Title subtitle = (Title) getSubtitle(i).clone();
        chart.subtitles.add(subtitle);
        subtitle.addChangeListener(chart);
    }

    if (this.plot != null) {
        chart.plot = (Plot) this.plot.clone();
        chart.plot.addChangeListener(chart);
    }

    chart.progressListeners = new EventListenerList();
    chart.changeListeners = new EventListenerList();
    return chart;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:38,代码来源:JFreeChart.java

示例4: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a subtitle at a particular position in the subtitle list, and sends
 * a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param index  the index (in the range 0 to {@link #getSubtitleCount()}).
 * @param subtitle  the subtitle to add (<code>null</code> not permitted).
 *
 * @since 1.0.6
 */
public void addSubtitle(int index, Title subtitle) {
    if (index < 0 || index > getSubtitleCount()) {
        throw new IllegalArgumentException(
                "The 'index' argument is out of range.");
    }
    ParamChecks.nullNotPermitted(subtitle, "subtitle");
    this.subtitles.add(index, subtitle);
    subtitle.addChangeListener(this);
    fireChartChanged();
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:20,代码来源:JFreeChart.java

示例5: clone

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Clones the object, and takes care of listeners.
 * Note: caller shall register its own listeners on cloned graph.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the chart is not cloneable.
 */
@Override
public Object clone() throws CloneNotSupportedException {
    JFreeChart chart = (JFreeChart) super.clone();

    chart.renderingHints = (RenderingHints) this.renderingHints.clone();
    // private boolean borderVisible;
    // private transient Stroke borderStroke;
    // private transient Paint borderPaint;

    if (this.title != null) {
        chart.title = (TextTitle) this.title.clone();
        chart.title.addChangeListener(chart);
    }

    chart.subtitles = new ArrayList();
    for (int i = 0; i < getSubtitleCount(); i++) {
        Title subtitle = (Title) getSubtitle(i).clone();
        chart.subtitles.add(subtitle);
        subtitle.addChangeListener(chart);
    }

    if (this.plot != null) {
        chart.plot = (Plot) this.plot.clone();
        chart.plot.addChangeListener(chart);
    }

    chart.progressListeners = new EventListenerList();
    chart.changeListeners = new EventListenerList();
    return chart;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:39,代码来源:JFreeChart.java

示例6: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a subtitle at a particular position in the subtitle list, and sends
 * a {@link ChartChangeEvent} to all registered listeners.
 *
 * @param index  the index (in the range 0 to {@link #getSubtitleCount()}).
 * @param subtitle  the subtitle to add ({@code null} not permitted).
 *
 * @since 1.0.6
 */
public void addSubtitle(int index, Title subtitle) {
    if (index < 0 || index > getSubtitleCount()) {
        throw new IllegalArgumentException(
                "The 'index' argument is out of range.");
    }
    Args.nullNotPermitted(subtitle, "subtitle");
    this.subtitles.add(index, subtitle);
    subtitle.addChangeListener(this);
    fireChartChanged();
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:20,代码来源:JFreeChart.java

示例7: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a chart subtitle, and notifies registered listeners that the chart
 * has been modified.
 *
 * @param subtitle  the subtitle (<code>null</code> not permitted).
 *
 * @see #getSubtitle(int)
 */
public void addSubtitle(Title subtitle) {
    if (subtitle == null) {
        throw new IllegalArgumentException("Null 'subtitle' argument.");
    }
    this.subtitles.add(subtitle);
    subtitle.addChangeListener(this);
    fireChartChanged();
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:17,代码来源:JFreeChart.java

示例8: clone

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Clones the object, and takes care of listeners.
 * Note: caller shall register its own listeners on cloned graph.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the chart is not cloneable.
 */
public Object clone() throws CloneNotSupportedException {
    JFreeChart chart = (JFreeChart) super.clone();

    chart.renderingHints = (RenderingHints) this.renderingHints.clone();
    // private boolean borderVisible;
    // private transient Stroke borderStroke;
    // private transient Paint borderPaint;

    if (this.title != null) {
        chart.title = (TextTitle) this.title.clone();
        chart.title.addChangeListener(chart);
    }

    chart.subtitles = new ArrayList();
    for (int i = 0; i < getSubtitleCount(); i++) {
        Title subtitle = (Title) getSubtitle(i).clone();
        chart.subtitles.add(subtitle);
        subtitle.addChangeListener(chart);
    }

    if (this.plot != null) {
        chart.plot = (Plot) this.plot.clone();
        chart.plot.addChangeListener(chart);
    }

    chart.progressListeners = new EventListenerList();
    chart.changeListeners = new EventListenerList();
    return chart;
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:38,代码来源:JFreeChart.java

示例9: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a chart subtitle, and notifies registered listeners that the chart 
 * has been modified.
 *
 * @param subtitle  the subtitle (<code>null</code> not permitted).
 */
public void addSubtitle(Title subtitle) {
    if (subtitle == null) {
        throw new IllegalArgumentException("Null 'subtitle' argument.");
    }
    this.subtitles.add(subtitle);
    subtitle.addChangeListener(this);
    fireChartChanged();
}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:15,代码来源:JFreeChart.java

示例10: addSubtitle

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Adds a chart subtitle, and notifies registered listeners that the chart has been modified.
 * 
 * @param subtitle the subtitle (<code>null</code> not permitted).
 * @see #getSubtitle(int)
 */
public void addSubtitle(Title subtitle) {
	ParamChecks.nullNotPermitted(subtitle, "subtitle");
	this.subtitles.add(subtitle);
	subtitle.addChangeListener(this);
	fireChartChanged();
}
 
开发者ID:hongliangpan,项目名称:manydesigns.cn,代码行数:13,代码来源:JFreeChart.java

示例11: clone

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Clones the object, and takes care of listeners. Note: caller shall register its own listeners on cloned graph.
 * 
 * @return A clone.
 * @throws CloneNotSupportedException if the chart is not cloneable.
 */
@Override
public Object clone() throws CloneNotSupportedException {
	JFreeChart chart = (JFreeChart) super.clone();

	chart.renderingHints = (RenderingHints) this.renderingHints.clone();
	// private boolean borderVisible;
	// private transient Stroke borderStroke;
	// private transient Paint borderPaint;

	if (this.title != null) {
		chart.title = (TextTitle) this.title.clone();
		chart.title.addChangeListener(chart);
	}

	chart.subtitles = new ArrayList();
	for (int i = 0; i < getSubtitleCount(); i++) {
		Title subtitle = (Title) getSubtitle(i).clone();
		chart.subtitles.add(subtitle);
		subtitle.addChangeListener(chart);
	}

	if (this.plot != null) {
		chart.plot = (Plot) this.plot.clone();
		chart.plot.addChangeListener(chart);
	}

	chart.progressListeners = new EventListenerList();
	chart.changeListeners = new EventListenerList();
	return chart;
}
 
开发者ID:hongliangpan,项目名称:manydesigns.cn,代码行数:37,代码来源:JFreeChart.java

示例12: clone

import org.jfree.chart.title.Title; //导入方法依赖的package包/类
/**
 * Clones the object, and takes care of listeners.
 * Note: caller shall register its own listeners on cloned graph.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException if the chart is not cloneable.
 */
public Object clone() throws CloneNotSupportedException {
    JFreeChart chart = (JFreeChart) super.clone();


    chart.renderingHints = (RenderingHints) this.renderingHints.clone();
    // private boolean borderVisible;
    // private transient Stroke borderStroke;
    // private transient Paint borderPaint;

    if (this.title != null) {
        chart.title = (TextTitle) this.title.clone();
        chart.title.addChangeListener(chart);
    }

    chart.subtitles = new ArrayList();
    for (int i = 0; i < getSubtitleCount(); i++) {
        Title subtitle = (Title) getSubtitle(i).clone();
        chart.subtitles.add(subtitle);
        subtitle.addChangeListener(chart);
    }

    if (this.legend != null) {
        chart.legend = (Legend) this.legend.clone();
        chart.legend.registerChart(chart);
        chart.legend.addChangeListener(chart);
    }

    if (this.plot != null) {
        chart.plot = (Plot) this.plot.clone();
        chart.plot.addChangeListener(chart);
    }

    //private boolean antialias;
    //private transient Paint backgroundPaint;
    //private transient Image backgroundImage;  // todo: not serialized yet
    //private int backgroundImageAlignment = Align.FIT;
    //private float backgroundImageAlpha = 0.5f;

    chart.progressListeners = new EventListenerList();
    chart.changeListeners = new EventListenerList();
    //private boolean notify;

    return chart;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:53,代码来源:JFreeChart.java


注:本文中的org.jfree.chart.title.Title.addChangeListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。