public static class SwtGralMouseListener.MouseListenerGralAction extends SwtGralMouseListener.MouseListenerNoAction
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 MouseMoveListener |
mouseMoveListener
TODO invoke user action if mouse releases the area
|
private int |
xMousePress
Positions saved on mouse press, to detect whether the mouse-release occurs in the pressed area.
|
private int |
yMousePress
Positions saved on mouse press, to detect whether the mouse-release occurs in the pressed area.
|
xDown, yDown
Constructor and Description |
---|
MouseListenerGralAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDoubleClick(MouseEvent e)
The mouse doubleclick is left empty.
|
void |
mouseDown(MouseEvent ev)
The mouse-down action save some informations about the widget.
|
void |
mouseUp(MouseEvent ev)
The default behavior for mouse up is used for design mode.
|
private int xMousePress
private int yMousePress
protected boolean isPressed
protected 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(MouseEvent e)
SwtGralMouseListener.MouseListenerNoAction
mouseDoubleClick
in class SwtGralMouseListener.MouseListenerNoAction
public void mouseDown(MouseEvent ev)
SwtGralMouseListener.MouseListenerNoAction
mouseDown
in class SwtGralMouseListener.MouseListenerNoAction
public void mouseUp(MouseEvent ev)
SwtGralMouseListener.MouseListenerNoAction
mouseUp
in class SwtGralMouseListener.MouseListenerNoAction