How to make jfreechart displaying the tooltip point information faster

自闭症网瘾萝莉.ら 提交于 2019-12-12 02:56:03

问题


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?


回答1:


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);
}


来源:https://stackoverflow.com/questions/16574733/how-to-make-jfreechart-displaying-the-tooltip-point-information-faster

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!