本文整理汇总了Java中org.jfree.chart.event.OverlayChangeEvent类的典型用法代码示例。如果您正苦于以下问题:Java OverlayChangeEvent类的具体用法?Java OverlayChangeEvent怎么用?Java OverlayChangeEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OverlayChangeEvent类属于org.jfree.chart.event包,在下文中一共展示了OverlayChangeEvent类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: notifyListeners
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Sends a {@link ChartChangeEvent} to all registered listeners.
*
* @param event information about the event that triggered the
* notification.
*/
protected void notifyListeners(OverlayChangeEvent event) {
Object[] listeners = this.changeListeners.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == OverlayChangeListener.class) {
((OverlayChangeListener) listeners[i + 1]).overlayChanged(
event);
}
}
}
示例2: overlayChanged
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Handles a change to an overlay by repainting the panel.
*
* @param event
* the event.
*
* @since 1.0.13
*/
@Override
public void overlayChanged(OverlayChangeEvent event) {
repaint();
}
示例3: overlayChanged
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Handles a change to an overlay by repainting the chart canvas.
*
* @param event the event.
*/
@Override
public void overlayChanged(OverlayChangeEvent event) {
draw();
}
示例4: fireOverlayChanged
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Sends a default {@link ChartChangeEvent} to all registered listeners.
* <P>
* This method is for convenience only.
*/
public void fireOverlayChanged() {
OverlayChangeEvent event = new OverlayChangeEvent(this);
notifyListeners(event);
}
示例5: overlayChanged
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Handles a change to an overlay by repainting the panel.
*
* @param event the event.
*
* @since 1.0.13
*/
@Override
public void overlayChanged(OverlayChangeEvent event) {
repaint();
}
示例6: overlayChanged
import org.jfree.chart.event.OverlayChangeEvent; //导入依赖的package包/类
/**
* Handles a change to an overlay by repainting the panel.
*
* @param event the event.
*
* @since 1.0.13
*/
public void overlayChanged(OverlayChangeEvent event) {
repaint();
}