本文整理匯總了Java中org.jfree.chart.axis.CategoryAxis.removeChangeListener方法的典型用法代碼示例。如果您正苦於以下問題:Java CategoryAxis.removeChangeListener方法的具體用法?Java CategoryAxis.removeChangeListener怎麽用?Java CategoryAxis.removeChangeListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jfree.chart.axis.CategoryAxis
的用法示例。
在下文中一共展示了CategoryAxis.removeChangeListener方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setDomainAxis
import org.jfree.chart.axis.CategoryAxis; //導入方法依賴的package包/類
/**
* Sets a domain axis.
*
* @param index the axis index.
* @param axis the axis.
*/
public void setDomainAxis(int index, CategoryAxis axis) {
CategoryAxis existing = (CategoryAxis) this.domainAxes.get(index);
if (existing != null) {
existing.removeChangeListener(this);
}
if (axis != null) {
axis.setPlot(this);
}
this.domainAxes.set(index, axis);
if (axis != null) {
axis.configure();
axis.addChangeListener(this);
}
notifyListeners(new PlotChangeEvent(this));
}
示例2: setDomainAxis
import org.jfree.chart.axis.CategoryAxis; //導入方法依賴的package包/類
/**
* Sets a domain axis and, if requested, sends a {@link PlotChangeEvent} to
* all registered listeners.
*
* @param index the axis index.
* @param axis the axis (<code>null</code> permitted).
* @param notify notify listeners?
*/
public void setDomainAxis(int index, CategoryAxis axis, boolean notify) {
CategoryAxis existing = (CategoryAxis) this.domainAxes.get(index);
if (existing != null) {
existing.removeChangeListener(this);
}
if (axis != null) {
axis.setPlot(this);
}
this.domainAxes.set(index, axis);
if (axis != null) {
axis.configure();
axis.addChangeListener(this);
}
if (notify) {
notifyListeners(new PlotChangeEvent(this));
}
}
示例3: clearDomainAxes
import org.jfree.chart.axis.CategoryAxis; //導入方法依賴的package包/類
/**
* Clears the domain axes from the plot and sends a {@link PlotChangeEvent} to all
* registered listeners.
*/
public void clearDomainAxes() {
for (int i = 0; i < this.domainAxes.size(); i++) {
CategoryAxis axis = (CategoryAxis) this.domainAxes.get(i);
if (axis != null) {
axis.removeChangeListener(this);
}
}
this.domainAxes.clear();
notifyListeners(new PlotChangeEvent(this));
}
示例4: clearDomainAxes
import org.jfree.chart.axis.CategoryAxis; //導入方法依賴的package包/類
/**
* Clears the domain axes from the plot and sends a {@link PlotChangeEvent}
* to all registered listeners.
*/
public void clearDomainAxes() {
for (int i = 0; i < this.domainAxes.size(); i++) {
CategoryAxis axis = (CategoryAxis) this.domainAxes.get(i);
if (axis != null) {
axis.removeChangeListener(this);
}
}
this.domainAxes.clear();
notifyListeners(new PlotChangeEvent(this));
}