Révision 3167
tmp/org.txm.backtomedia.rcp/src/org/txm/backtomedia/commands/function/TripleRangeSlider.java (revision 3167) | ||
---|---|---|
304 | 304 |
private void handleMouseMove(final Event e) { |
305 | 305 |
final int x = e.x, y = e.y; |
306 | 306 |
final Image img = this.orientation == SWT.HORIZONTAL ? this.slider : this.vSlider; |
307 |
if (img == null) return; |
|
308 |
if (coordUpper == null) return; |
|
309 |
if (coordMiddle == null) return; |
|
310 |
if (coordLower == null) return; |
|
311 |
|
|
307 | 312 |
this.upperHover = x >= this.coordUpper.x && x <= this.coordUpper.x + img.getBounds().width && y >= this.coordUpper.y && y <= this.coordUpper.y + img.getBounds().height; |
308 | 313 |
this.middleHover = x >= this.coordMiddle.x && x <= this.coordMiddle.x + img.getBounds().width && y >= this.coordMiddle.y && y <= this.coordMiddle.y + img.getBounds().height; |
309 | 314 |
this.lowerHover = x >= this.coordLower.x && x <= this.coordLower.x + img.getBounds().width && y >= this.coordLower.y && y <= this.coordLower.y + img.getBounds().height; |
Formats disponibles : Unified diff