本文整理汇总了Java中org.jfree.chart.renderer.xy.XYItemRenderer.removeChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java XYItemRenderer.removeChangeListener方法的具体用法?Java XYItemRenderer.removeChangeListener怎么用?Java XYItemRenderer.removeChangeListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.renderer.xy.XYItemRenderer
的用法示例。
在下文中一共展示了XYItemRenderer.removeChangeListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setRenderer
import org.jfree.chart.renderer.xy.XYItemRenderer; //导入方法依赖的package包/类
/**
* Sets a renderer and sends a {@link PlotChangeEvent} to all
* registered listeners.
*
* @param index the index.
* @param renderer the renderer.
* @param notify notify listeners?
*
* @see #getRenderer(int)
*/
public void setRenderer(int index, XYItemRenderer renderer,
boolean notify) {
XYItemRenderer existing = getRenderer(index);
if (existing != null) {
existing.removeChangeListener(this);
}
this.renderers.set(index, renderer);
if (renderer != null) {
renderer.setPlot(this);
renderer.addChangeListener(this);
}
configureDomainAxes();
configureRangeAxes();
if (notify) {
notifyListeners(new PlotChangeEvent(this));
}
}
示例2: setRenderer
import org.jfree.chart.renderer.xy.XYItemRenderer; //导入方法依赖的package包/类
/**
* Sets the renderer for the dataset with the specified index and, if
* requested, sends a change event to all registered listeners. Note that
* each dataset should have its own renderer, you should not use one
* renderer for multiple datasets.
*
* @param index the index (must be >= 0).
* @param renderer the renderer.
* @param notify notify listeners?
*
* @see #getRenderer(int)
*/
public void setRenderer(int index, XYItemRenderer renderer,
boolean notify) {
XYItemRenderer existing = getRenderer(index);
if (existing != null) {
existing.removeChangeListener(this);
}
this.renderers.put(index, renderer);
if (renderer != null) {
renderer.setPlot(this);
renderer.addChangeListener(this);
}
configureDomainAxes();
configureRangeAxes();
if (notify) {
fireChangeEvent();
}
}
示例3: setRenderer
import org.jfree.chart.renderer.xy.XYItemRenderer; //导入方法依赖的package包/类
/**
* Sets a renderer and sends a {@link PlotChangeEvent} is sent to all registered listeners.
*
* @param index the index.
* @param renderer the renderer.
*/
public void setRenderer(int index, XYItemRenderer renderer) {
XYItemRenderer existing = getRenderer(index);
if (existing != null) {
existing.removeChangeListener(this);
}
this.renderers.set(index, renderer);
if (renderer != null) {
renderer.setPlot(this);
}
configureDomainAxes();
configureRangeAxes();
notifyListeners(new PlotChangeEvent(this));
}