}
}
- private MouseAdapter tooltipMouseAdapter = new MouseAdapter() {
- public void mouseUp(MouseEvent e) {
- disposeTooltip();
- }
- };
-
public TimelineItemManager() {
chartManager = new TimelineChartManager();
TimelineMaster.getInstance().setTimelineChartManager(chartManager);
gridLayout.marginRight = MARGIN;
gridLayout.verticalSpacing = SPACING;
tooltip.setLayout(gridLayout);
- tooltip.addMouseListener(tooltipMouseAdapter);
Font indexInfoFont = new Font(Display.getDefault(), FontResources.ARIAL, 8, SWT.NORMAL);
Composite IndexInfoComposite = new Composite(tooltip, SWT.NONE);
IndexInfoComposite.setLayout(new RowLayout(SWT.HORIZONTAL));
- IndexInfoComposite.addMouseListener(tooltipMouseAdapter);
Canvas indexCanvas = new Canvas(IndexInfoComposite, SWT.BORDER);
indexCanvas.setBackground(getColorFromAwtColor(seriesColorList.get(i)));
indexCanvas.setLayoutData(rowData);
- indexCanvas.addMouseListener(tooltipMouseAdapter);
Label indexLabel = new Label(IndexInfoComposite, SWT.NONE);
indexLabel.setFont(indexInfoFont);
indexInfoLabelList.add(indexLabel);
- indexLabel.addMouseListener(tooltipMouseAdapter);
double yValue = getYbyX(seriesList.get(i).toArray(), selectedTime);