本文整理汇总了Java中org.jfree.chart.plot.Crosshair.addPropertyChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java Crosshair.addPropertyChangeListener方法的具体用法?Java Crosshair.addPropertyChangeListener怎么用?Java Crosshair.addPropertyChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.plot.Crosshair
的用法示例。
在下文中一共展示了Crosshair.addPropertyChangeListener方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
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);
}
示例2: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* 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();
}
示例3: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* Adds a crosshair against the range axis and sends an
* {@link OverlayChangeEvent} to all registered listeners.
*
* @param crosshair the crosshair ({@code null} not permitted).
*/
public void addRangeCrosshair(Crosshair crosshair) {
Args.nullNotPermitted(crosshair, "crosshair");
this.yCrosshairs.add(crosshair);
crosshair.addPropertyChangeListener(this);
fireOverlayChanged();
}
示例4: addDomainCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* Adds a crosshair against the domain axis.
*
* @param crosshair the crosshair.
*/
public void addDomainCrosshair(Crosshair crosshair) {
if (crosshair == null) {
throw new IllegalArgumentException("Null 'crosshair' argument.");
}
this.xCrosshairs.add(crosshair);
crosshair.addPropertyChangeListener(this);
}
示例5: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* Adds a crosshair against the range axis.
*
* @param crosshair the crosshair.
*/
public void addRangeCrosshair(Crosshair crosshair) {
if (crosshair == null) {
throw new IllegalArgumentException("Null 'crosshair' argument.");
}
this.yCrosshairs.add(crosshair);
crosshair.addPropertyChangeListener(this);
}
示例6: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* 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();
}
示例7: addRangeCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
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);
}
示例8: addDomainCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* 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();
}
示例9: addDomainCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* Adds a crosshair against the domain axis and sends an
* {@link OverlayChangeEvent} to all registered listeners.
*
* @param crosshair the crosshair ({@code null} not permitted).
*
* @see #removeDomainCrosshair(org.jfree.chart.plot.Crosshair)
* @see #addRangeCrosshair(org.jfree.chart.plot.Crosshair)
*/
public void addDomainCrosshair(Crosshair crosshair) {
Args.nullNotPermitted(crosshair, "crosshair");
this.xCrosshairs.add(crosshair);
crosshair.addPropertyChangeListener(this);
fireOverlayChanged();
}
示例10: addDomainCrosshair
import org.jfree.chart.plot.Crosshair; //导入方法依赖的package包/类
/**
* 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();
}