public static class SwtGralMouseListener.MouseListenerGralAction extends java.lang.Object implements org.eclipse.swt.events.MouseListener
MouseListener
and implements methods which invokes the
GralWidget.setActionMouse(GralMouseWidgetAction_ifc, int)
or the GralWidget.setActionChange(GralUserAction)
on the determined mouse clicks.Modifier and Type | Field and Description |
---|---|
protected boolean |
isPressed
Used in the implementation level for the paint routine.
|
protected org.eclipse.swt.events.MouseMoveListener |
mouseMoveListener
TODO invoke user action if mouse releases the area
|
Constructor and Description |
---|
MouseListenerGralAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
The mouse doubleclick is left empty.
|
void |
mouseDown(org.eclipse.swt.events.MouseEvent ev)
The mouse-down action save some informations about the widget.
|
void |
mouseUp(org.eclipse.swt.events.MouseEvent ev)
The default behavior for mouse up is used for design mode.
|
protected boolean isPressed
protected org.eclipse.swt.events.MouseMoveListener mouseMoveListener
public MouseListenerGralAction()
mouseWidgetAction
- Action invoked, maybe nullmUser
- 0 or or-combinations of bits in GralMouseWidgetAction_ifc.mUser1down
and all other mUser... If one of this bits is set, the GralWidget.setActionChange(GralUserAction)
is invoked on the appropriate mouse action after and independent of the mouseWidgetAction.public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
mouseDoubleClick
in interface org.eclipse.swt.events.MouseListener
public void mouseDown(org.eclipse.swt.events.MouseEvent ev)
mouseDown
in interface org.eclipse.swt.events.MouseListener
public void mouseUp(org.eclipse.swt.events.MouseEvent ev)
mouseUp
in interface org.eclipse.swt.events.MouseListener