protected class AnnotationBarHoverManager.Closer extends MouseTrackAdapter implements AbstractInformationControlManager.IInformationControlCloser, MouseListener, MouseMoveListener, ControlListener, KeyListener, DisposeListener, ShellListener, Listener
| Constructor and Description |
|---|
AnnotationBarHoverManager.Closer()
Creates a new information control closer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
controlMoved(ControlEvent event)
Sent when the location (x, y) of a control changes relative
to its parent (or relative to the display, for
Shells). |
void |
controlResized(ControlEvent event)
Sent when the size (width, height) of a control changes.
|
void |
handleEvent(Event event)
Sent when an event that the receiver has registered for occurs.
|
void |
keyPressed(KeyEvent event)
Sent when a key is pressed on the system keyboard.
|
void |
keyReleased(KeyEvent event)
Sent when a key is released on the system keyboard.
|
void |
mouseDoubleClick(MouseEvent event)
Sent when a mouse button is pressed twice within the
(operating system specified) double click period.
|
void |
mouseDown(MouseEvent event)
Sent when a mouse button is pressed.
|
void |
mouseExit(MouseEvent event)
Sent when the mouse pointer passes out of the area of
the screen covered by a control.
|
void |
mouseMove(MouseEvent event)
Sent when the mouse moves.
|
void |
mouseUp(MouseEvent event)
Sent when a mouse button is released.
|
void |
setInformationControl(IInformationControl control)
Sets the closer's information control, the one to close if necessary.
|
void |
setSubjectControl(Control control)
Sets the closer's subject control.
|
void |
shellActivated(ShellEvent e)
Sent when a shell becomes the active window.
|
void |
shellClosed(ShellEvent e)
Sent when a shell is closed.
|
void |
shellDeactivated(ShellEvent e)
Sent when a shell stops being the active window.
|
void |
shellDeiconified(ShellEvent e)
Sent when a shell is un-minimized.
|
void |
shellIconified(ShellEvent e)
Sent when a shell is minimized.
|
void |
start(Rectangle subjectArea)
Tells this closer to start monitoring the subject and the information
control.
|
void |
stop()
Tells this closer to stop monitoring the subject and the information control.
|
protected void |
stop(boolean delayRestart)
Stops the information control and if
delayRestart is set
allows restart only after a certain delay. |
void |
widgetDisposed(DisposeEvent e)
Sent when the widget is disposed.
|
mouseEnter, mouseHoverpublic AnnotationBarHoverManager.Closer()
public void setSubjectControl(Control control)
AbstractInformationControlManager.IInformationControlCloser
Must be called before start. May again be called
between start and stop.
setSubjectControl in interface AbstractInformationControlManager.IInformationControlClosercontrol - the subject controlpublic void setInformationControl(IInformationControl control)
AbstractInformationControlManager.IInformationControlCloser
Must be called before start. May again be called
between start and stop.
setInformationControl in interface AbstractInformationControlManager.IInformationControlClosercontrol - the information controlpublic void start(Rectangle subjectArea)
AbstractInformationControlManager.IInformationControlCloserstart in interface AbstractInformationControlManager.IInformationControlClosersubjectArea - the area for which the presented information is validpublic void stop()
AbstractInformationControlManager.IInformationControlCloserstop in interface AbstractInformationControlManager.IInformationControlCloserprotected void stop(boolean delayRestart)
delayRestart is set
allows restart only after a certain delay.delayRestart - true if restart should be delayedpublic void mouseMove(MouseEvent event)
MouseMoveListenermouseMove in interface MouseMoveListenerevent - an event containing information about the mouse movepublic void mouseUp(MouseEvent event)
MouseListenermouseUp in interface MouseListenerevent - an event containing information about the mouse button releasepublic void mouseDown(MouseEvent event)
MouseListenermouseDown in interface MouseListenerevent - an event containing information about the mouse button presspublic void mouseDoubleClick(MouseEvent event)
MouseListenermouseDoubleClick in interface MouseListenerevent - an event containing information about the mouse double clickDisplay.getDoubleClickTime()public void handleEvent(Event event)
ListenerhandleEvent in interface Listenerevent - the event which occurredpublic void mouseExit(MouseEvent event)
MouseTrackAdaptermouseExit in interface MouseTrackListenermouseExit in class MouseTrackAdapterevent - an event containing information about the mouse exitpublic void controlResized(ControlEvent event)
ControlListenercontrolResized in interface ControlListenerevent - an event containing information about the resizepublic void controlMoved(ControlEvent event)
ControlListenerShells).controlMoved in interface ControlListenerevent - an event containing information about the movepublic void keyReleased(KeyEvent event)
KeyListenerkeyReleased in interface KeyListenerevent - an event containing information about the key releasepublic void keyPressed(KeyEvent event)
KeyListenerkeyPressed in interface KeyListenerevent - an event containing information about the key presspublic void shellActivated(ShellEvent e)
ShellListenershellActivated in interface ShellListenere - an event containing information about the activationpublic void shellClosed(ShellEvent e)
ShellListenershellClosed in interface ShellListenere - an event containing information about the closepublic void shellDeactivated(ShellEvent e)
ShellListenershellDeactivated in interface ShellListenere - an event containing information about the deactivationpublic void shellDeiconified(ShellEvent e)
ShellListenershellDeiconified in interface ShellListenere - an event containing information about the un-minimizationpublic void shellIconified(ShellEvent e)
ShellListenershellIconified in interface ShellListenere - an event containing information about the minimizationpublic void widgetDisposed(DisposeEvent e)
DisposeListenerwidgetDisposed in interface DisposeListenere - an event containing information about the disposeGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.