|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.events.MouseTrackAdapter
org.eclipse.jface.text.source.AnnotationBarHoverManager.Closer
The information control closer for the hover information. Closes the information control as soon as the mouse pointer leaves the subject area, a mouse button is pressed, the user presses a key, or the subject control is resized or moved.
Constructor Summary | |
---|---|
AnnotationBarHoverManager.Closer()
Creates a new information control closer. |
Method Summary | |
---|---|
void |
controlMoved(ControlEvent event)
Sent when the location (x, y) of a control changes relative to its parent (or relative to the display, for Shell s). |
void |
controlResized(ControlEvent event)
Sent when the size (width, height) of a control changes. |
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. |
Methods inherited from class org.eclipse.swt.events.MouseTrackAdapter |
---|
mouseEnter, mouseHover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnnotationBarHoverManager.Closer()
Method Detail |
public void setSubjectControl(Control control)
AbstractInformationControlManager.IInformationControlCloser
Must be called before start
. May again be called
between start
and stop
.
setSubjectControl
in interface AbstractInformationControlManager.IInformationControlCloser
control
- 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.IInformationControlCloser
control
- the information controlpublic void start(Rectangle subjectArea)
AbstractInformationControlManager.IInformationControlCloser
start
in interface AbstractInformationControlManager.IInformationControlCloser
subjectArea
- the area for which the presented information is validpublic void stop()
AbstractInformationControlManager.IInformationControlCloser
stop
in interface AbstractInformationControlManager.IInformationControlCloser
protected 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)
MouseMoveListener
mouseMove
in interface MouseMoveListener
event
- an event containing information about the mouse movepublic void mouseUp(MouseEvent event)
MouseListener
mouseUp
in interface MouseListener
event
- an event containing information about the mouse button releasepublic void mouseDown(MouseEvent event)
MouseListener
mouseDown
in interface MouseListener
event
- an event containing information about the mouse button presspublic void mouseDoubleClick(MouseEvent event)
MouseListener
mouseDoubleClick
in interface MouseListener
event
- an event containing information about the mouse double clickDisplay.getDoubleClickTime()
public void mouseExit(MouseEvent event)
MouseTrackAdapter
mouseExit
in interface MouseTrackListener
mouseExit
in class MouseTrackAdapter
event
- an event containing information about the mouse exitpublic void controlResized(ControlEvent event)
ControlListener
controlResized
in interface ControlListener
event
- an event containing information about the resizepublic void controlMoved(ControlEvent event)
ControlListener
Shell
s).
controlMoved
in interface ControlListener
event
- an event containing information about the movepublic void keyReleased(KeyEvent event)
KeyListener
keyReleased
in interface KeyListener
event
- an event containing information about the key releasepublic void keyPressed(KeyEvent event)
KeyListener
keyPressed
in interface KeyListener
event
- an event containing information about the key presspublic void shellActivated(ShellEvent e)
ShellListener
shellActivated
in interface ShellListener
e
- an event containing information about the activationpublic void shellClosed(ShellEvent e)
ShellListener
shellClosed
in interface ShellListener
e
- an event containing information about the closepublic void shellDeactivated(ShellEvent e)
ShellListener
shellDeactivated
in interface ShellListener
e
- an event containing information about the deactivationpublic void shellDeiconified(ShellEvent e)
ShellListener
shellDeiconified
in interface ShellListener
e
- an event containing information about the un-minimizationpublic void shellIconified(ShellEvent e)
ShellListener
shellIconified
in interface ShellListener
e
- an event containing information about the minimizationpublic void widgetDisposed(DisposeEvent e)
DisposeListener
widgetDisposed
in interface DisposeListener
e
- an event containing information about the dispose
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.