if (fHoverArea.y < 0) fHoverArea.y= 0; setSubjectArea(fHoverArea);
/** * {@inheritDoc} * @deprecated visibility will be changed to protected */ @Deprecated @Override public void setEnabled(boolean enabled) { boolean was= isEnabled(); super.setEnabled(enabled); boolean is= isEnabled(); if (was != is && fMouseTracker != null) { if (is) fMouseTracker.start(getSubjectControl(), fAreaControl); else fMouseTracker.stop(); } }
if (fHoverArea.y < 0) fHoverArea.y= 0; setSubjectArea(fHoverArea);
/** * {@inheritDoc} * @deprecated visibility will be changed to protected */ @Deprecated @Override public void setEnabled(boolean enabled) { boolean was= isEnabled(); super.setEnabled(enabled); boolean is= isEnabled(); if (was != is && fMouseTracker != null) { if (is) fMouseTracker.start(getSubjectControl(), fAreaControl); else fMouseTracker.stop(); } }
@Override protected void presentInformation() { if (fMouseTracker == null) { super.presentInformation(); return; } Rectangle area= getSubjectArea(); if (area != null) fMouseTracker.setSubjectArea(area); if (fMouseTracker.isMouseLost()) { fMouseTracker.computationCompleted(); fMouseTracker.deactivate(); } else { fMouseTracker.computationCompleted(); super.presentInformation(); } }
@Override protected void presentInformation() { if (fMouseTracker == null) { super.presentInformation(); return; } Rectangle area= getSubjectArea(); if (area != null) fMouseTracker.setSubjectArea(area); if (fMouseTracker.isMouseLost()) { fMouseTracker.computationCompleted(); fMouseTracker.deactivate(); } else { fMouseTracker.computationCompleted(); super.presentInformation(); } }
/** * Disposes this manager's information control. */ @Override public void dispose() { if (fMouseTracker != null) { fMouseTracker.stop(); fMouseTracker.fSubjectControl= null; fMouseTracker.fSubjectArea= null; fMouseTracker= null; } super.dispose(); }
/** * Disposes this manager's information control. */ @Override public void dispose() { if (fMouseTracker != null) { fMouseTracker.stop(); fMouseTracker.fSubjectControl= null; fMouseTracker.fSubjectArea= null; fMouseTracker= null; } super.dispose(); }
@Override public void shellDeactivated(ShellEvent e) { fShellDeactivatedWhileComputing= true; deactivate(); }
/** * Starts this mouse tracker. The given control becomes this tracker's subject control. * Installs itself as mouse track listener on the subject control. * * @param subjectControl the subject control */ public void start(Control subjectControl) { start(subjectControl, subjectControl); }
@Override public void mouseMove(MouseEvent event) { if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(getCurrentInformationControl())) { if (!fSubjectArea.contains(event.x, event.y)) deactivate(); } else { if (!inKeepUpZone(event.x, event.y, fSubjectControl, fSubjectArea, false)) deactivate(); } }
@Override public void mouseExit(MouseEvent e) { if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(getCurrentInformationControl()) || !inKeepUpZone(e.x, e.y, fSubjectControl, fSubjectArea, false)) { fMouseLostWhileComputing= true; deactivate(); } }
/** * Starts this mouse tracker. The given control becomes this tracker's subject control. * Installs itself as mouse track listener on the subject control. * * @param subjectControl the subject control */ public void start(Control subjectControl) { start(subjectControl, subjectControl); }
@Override public void shellIconified(ShellEvent e) { fShellDeactivatedWhileComputing= true; deactivate(); }
@Override public void shellDeactivated(ShellEvent e) { fShellDeactivatedWhileComputing= true; deactivate(); }
@Override public void shellIconified(ShellEvent e) { fShellDeactivatedWhileComputing= true; deactivate(); }
@Override public void mouseMove(MouseEvent event) { if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(getCurrentInformationControl())) { if (!fSubjectArea.contains(event.x, event.y)) deactivate(); } else { if (!inKeepUpZone(event.x, event.y, fSubjectControl, fSubjectArea, false)) deactivate(); } }
@Override public void mouseExit(MouseEvent e) { if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(getCurrentInformationControl()) || !inKeepUpZone(e.x, e.y, fSubjectControl, fSubjectArea, false)) { fMouseLostWhileComputing= true; deactivate(); } }