如何使jfreechart更快地显示工具提示点信息 [英] How to make jfreechart displaying the tooltip point information faster

查看:52
本文介绍了如何使jfreechart更快地显示工具提示点信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使点信息工具提示显示得更快.我该怎么做?使用默认设置时,我必须将鼠标悬停在该点上,然后等待以查看点坐标信息.我希望点坐标立即可用.我该怎么办?

I would like to make the point info tooltip appear faster. How can i do it? with the default setting I have to hover the mouse onto the point, then wait to be able to see point coordinate information. I want the point coordinates to be immediately available. How can i do that?

推荐答案

ChartPanel 提供了 getInitialDelay() setInitialDelay()来查询和更改使用的初始工具提示延迟值在此图表面板中."作为基于 BarChartDemo1 ,对构造函数的以下更改完全消除了初始延迟:

ChartPanel provides getInitialDelay() and setInitialDelay() to query and alter "the initial tooltip delay value used inside this chart panel." As a concrete example based on BarChartDemo1, the following change to the constructor eliminates the initial delay entirely:

public BarChartDemo1(String title) {
    super(title);
    …
    chartPanel.setInitialDelay(0);
    setContentPane(chartPanel);
}

这篇关于如何使jfreechart更快地显示工具提示点信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆