L - the type of lister to forward events topublic class AbstractSWTMouseEventForwarder<L extends java.util.EventListener> extends AbstractEventForwarder<L>
| Constructor and Description |
|---|
AbstractSWTMouseEventForwarder(TICListenerSet<L> listenerSet,
ScrollingTICComponent scrolledComponent)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
transformMouseX(int x)
Edits the x-coordinate of a mouse event according to the values of
DirectPaintingSWTScrollContainer#getScrollOffsetX()
if the owner of the listener set implements DirectPaintingSWTScrollContainer. |
protected int |
transformMouseY(int y)
Edits the y-coordinate of a mouse event according to the values of
DirectPaintingSWTScrollContainer#getScrollOffsetY()
if the owner of the listener set implements DirectPaintingSWTScrollContainer. |
forwardMouseEventToParent, getListenerSetpublic AbstractSWTMouseEventForwarder(TICListenerSet<L> 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.protected int transformMouseX(int x)
DirectPaintingSWTScrollContainer#getScrollOffsetX()
if the owner of the listener set implements DirectPaintingSWTScrollContainer. Otherwise the value remains unchanged.x - the x-coordinate to be editedprotected int transformMouseY(int y)
DirectPaintingSWTScrollContainer#getScrollOffsetY()
if the owner of the listener set implements DirectPaintingSWTScrollContainer. Otherwise the value remains unchanged.y - the y-coordinate to be edited