Révision 3341
TXM/trunk/org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/themes/highcharts/swing/CustomChartPanel.java (revision 3341) | ||
---|---|---|
11 | 11 |
import org.txm.chartsengine.jfreechart.core.themes.highcharts.defaulttheme.swing.CustomHTMLToolTip; |
12 | 12 |
import org.txm.chartsengine.jfreechart.rcp.themes.base.swing.ItemSelectionJFCChartPanel; |
13 | 13 |
import org.txm.chartsengine.rcp.SWTChartsComponentsProvider; |
14 |
import org.txm.utils.OSDetector; |
|
14 | 15 |
|
15 | 16 |
/** |
16 | 17 |
* Chart panel providing custom tool tips with Highcharts graphics theme. |
17 | 18 |
* |
18 |
* @author sjacquot |
|
19 |
* @author sjacquot, mdcorde
|
|
19 | 20 |
* |
20 | 21 |
*/ |
21 | 22 |
public class CustomChartPanel extends ItemSelectionJFCChartPanel { |
... | ... | |
87 | 88 |
// Tooltips |
88 | 89 |
this.setInitialDelay(500); |
89 | 90 |
|
91 |
// FIXME MD: for #3082 disable tooltips in Ubuntu -> tooltips make the SWT interface flick/blink |
|
92 |
this.setDisplayToolTips(!OSDetector.isFamilyUnix()); |
|
93 |
|
|
90 | 94 |
// Disable the Swing original pop up menu |
91 | 95 |
this.setPopupMenu(null); |
92 | 96 |
} |
93 | 97 |
|
94 |
|
|
95 | 98 |
@Override |
96 | 99 |
public JToolTip createToolTip() { |
97 | 100 |
JToolTip tip = new CustomHTMLToolTip(this.getChart(), true); |
Formats disponibles : Unified diff