|
Lines 294-313
Link Here
|
| 294 |
} |
294 |
} |
| 295 |
|
295 |
|
| 296 |
/** |
296 |
/** |
| 297 |
* This is the amount the used to control how much the tooltip is shifted |
|
|
| 298 |
* from the current mouse position |
| 299 |
* |
| 300 |
* @param object |
| 301 |
* the element for which the tooltip is shown |
| 302 |
* @param columnIndex |
| 303 |
* the column-index |
| 304 |
* @return shift of the tooltip |
| 305 |
*/ |
| 306 |
public Point getTooltipShift(Object object, int columnIndex) { |
| 307 |
return null; |
| 308 |
} |
| 309 |
|
| 310 |
/** |
| 311 |
* If you want your tooltip to be using the native Tooltip you can force |
297 |
* If you want your tooltip to be using the native Tooltip you can force |
| 312 |
* this by returning true from this method. If native tooltips are used only |
298 |
* this by returning true from this method. If native tooltips are used only |
| 313 |
* the text-value is used all other feature are of custom tooltips are not |
299 |
* the text-value is used all other feature are of custom tooltips are not |
|
Lines 324-368
Link Here
|
| 324 |
} |
310 |
} |
| 325 |
|
311 |
|
| 326 |
/** |
312 |
/** |
| 327 |
* The time in milliseconds after the tooltip is hidden |
|
|
| 328 |
* |
| 329 |
* @param object |
| 330 |
* the element for which the tooltip is shown |
| 331 |
* @param columnIndex |
| 332 |
* the column-index |
| 333 |
* @return milliseconds |
| 334 |
*/ |
| 335 |
public int getTooltipTimeDisplayed(Object object, int columnIndex) { |
| 336 |
return 0; |
| 337 |
} |
| 338 |
|
| 339 |
/** |
| 340 |
* The time in milliseconds until the tooltip pops up |
| 341 |
* |
| 342 |
* @param object |
| 343 |
* the element for which the tooltip is shown |
| 344 |
* @param columnIndex |
| 345 |
* the column-index |
| 346 |
* @return milliseconds |
| 347 |
*/ |
| 348 |
public int getTooltipDisplayDelayTime(Object object, int columnIndex) { |
| 349 |
return 0; |
| 350 |
} |
| 351 |
|
| 352 |
/** |
| 353 |
* The style used to create the label |
| 354 |
* |
| 355 |
* @param object |
| 356 |
* the element for which the tooltip is shown |
| 357 |
* @param columnIndex |
| 358 |
* the column-index |
| 359 |
* @return style mask |
| 360 |
*/ |
| 361 |
public int getTooltipImageStyle(Object object, int columnIndex) { |
| 362 |
return SWT.SHADOW_NONE; |
| 363 |
} |
| 364 |
|
| 365 |
/** |
| 366 |
* This is the amount the used to control how much the tooltip is shifted |
313 |
* This is the amount the used to control how much the tooltip is shifted |
| 367 |
* from the current mouse position |
314 |
* from the current mouse position |
| 368 |
* |
315 |
* |
|
Lines 417-423
Link Here
|
| 417 |
* the element for which the tooltip is shown |
364 |
* the element for which the tooltip is shown |
| 418 |
* @return style mask |
365 |
* @return style mask |
| 419 |
*/ |
366 |
*/ |
| 420 |
public int getTooltipImageStyle(Object object) { |
367 |
public int getTooltipStyle(Object object) { |
| 421 |
return SWT.SHADOW_NONE; |
368 |
return SWT.SHADOW_NONE; |
| 422 |
} |
369 |
} |
| 423 |
|
370 |
|