public class SWTMouseEventForwarder extends AbstractSWTMouseEventForwarder<TICMouseListener> implements org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener
TICMouseListener
s and delegates all Swing and SWT events to the entries in this list.
Warning: This class in meant for internal use by TICComponent
and is not guaranteed to have an unchanged
API in future releases with the same major version number.
Constructor and Description |
---|
SWTMouseEventForwarder(TICListenerSet<TICMouseListener> listenerSet,
ScrollingTICComponent scrolledComponent)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent event) |
void |
mouseDown(org.eclipse.swt.events.MouseEvent event) |
void |
mouseEnter(org.eclipse.swt.events.MouseEvent event) |
void |
mouseExit(org.eclipse.swt.events.MouseEvent event) |
void |
mouseHover(org.eclipse.swt.events.MouseEvent event) |
void |
mouseMove(org.eclipse.swt.events.MouseEvent event) |
void |
mouseUp(org.eclipse.swt.events.MouseEvent event) |
transformMouseX, transformMouseY
forwardMouseEventToParent, getListenerSet
public SWTMouseEventForwarder(TICListenerSet<TICMouseListener> listenerSet, ScrollingTICComponent scrolledComponent)
listenerSet
- the set of TIC listeners for forward events toscrolledComponent
- Optional parameter that allows to specify a scrolled component that will be the
receiver of forwarded events. If the receiver is not a scrolled component and no mouse coordinate
transformation shall be performed, null
can be specified here.public void mouseEnter(org.eclipse.swt.events.MouseEvent event)
mouseEnter
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseExit(org.eclipse.swt.events.MouseEvent event)
mouseExit
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseHover(org.eclipse.swt.events.MouseEvent event)
mouseHover
in interface org.eclipse.swt.events.MouseTrackListener
public void mouseMove(org.eclipse.swt.events.MouseEvent event)
mouseMove
in interface org.eclipse.swt.events.MouseMoveListener
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent event)
mouseDoubleClick
in interface org.eclipse.swt.events.MouseListener
public void mouseDown(org.eclipse.swt.events.MouseEvent event)
mouseDown
in interface org.eclipse.swt.events.MouseListener
public void mouseUp(org.eclipse.swt.events.MouseEvent event)
mouseUp
in interface org.eclipse.swt.events.MouseListener