本文整理汇总了Java中org.jfree.chart.fx.interaction.ChartMouseListenerFX.chartMouseMoved方法的典型用法代码示例。如果您正苦于以下问题:Java ChartMouseListenerFX.chartMouseMoved方法的具体用法?Java ChartMouseListenerFX.chartMouseMoved怎么用?Java ChartMouseListenerFX.chartMouseMoved使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.fx.interaction.ChartMouseListenerFX
的用法示例。
在下文中一共展示了ChartMouseListenerFX.chartMouseMoved方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dispatchMouseMovedEvent
import org.jfree.chart.fx.interaction.ChartMouseListenerFX; //导入方法依赖的package包/类
public void dispatchMouseMovedEvent(Point2D point, MouseEvent e) {
double x = point.getX();
double y = point.getY();
ChartEntity entity = this.info.getEntityCollection().getEntity(x, y);
ChartMouseEventFX event = new ChartMouseEventFX(this.chart, e, entity);
for (ChartMouseListenerFX listener : this.chartMouseListeners) {
listener.chartMouseMoved(event);
}
}
示例2: chartMouseMoved
import org.jfree.chart.fx.interaction.ChartMouseListenerFX; //导入方法依赖的package包/类
@Override
public void chartMouseMoved(ChartMouseEventFX event) {
// relay the event from the canvas to our registered listeners
for (ChartMouseListenerFX listener: this.chartMouseListeners) {
listener.chartMouseMoved(event);
}
}