class GralButton.MouseActionButton extends java.lang.Object implements GralMouseWidgetAction_ifc
mUser1down, mUser1up, mUser2down, mUser2up, mUser3down, mUser3up, mUserAll, mUserAlldown, mUserAllup, mUserDouble, version
Constructor and Description |
---|
MouseActionButton() |
Modifier and Type | Method and Description |
---|---|
void |
mouse1Double(int keyCode,
int xMousePixel,
int yMousePixel,
int xWidgetSizePixel,
int yWidgetSizePixel,
GralWidget widgg) |
void |
mouse1Down(int keyCode,
int xMousePixel,
int yMousePixel,
int xWidgetSizePixel,
int yWidgetSizePixel,
GralWidget widgg)
Called from the graphic implementation layer if the standard left mouse button is pressed.
|
void |
mouse1Up(int keyCode,
int xMousePixel,
int yMousePixel,
int xWidgetSizePixel,
int yWidgetSizePixel,
GralWidget widgg)
It will be called only if the mouse up is pressed inside the button's area.
|
void |
mouse2Down(int keyCode,
int xMousePixel,
int yMousePixel,
int xWidgetSizePixel,
int yWidgetSizePixel,
GralWidget widgg)
Called from the graphic implementation layer if the standard right mouse button is pressed.
|
void |
mouse2Up(int keyCode,
int xMousePixel,
int yMousePixel,
int xWidgetSizePixel,
int yWidgetSizePixel,
GralWidget widgg) |
boolean |
mouseMoved(int xMousePixel,
int yMousePixel,
int sizex,
int sizey)
This routine is called only if a mouse button is pressed while moving the mouse cursor.
|
public boolean mouseMoved(int xMousePixel, int yMousePixel, int sizex, int sizey)
GralMouseWidgetAction_ifc
mouseMoved
in interface GralMouseWidgetAction_ifc
xMousePixel
- The current mouse cursor x valueyMousePixel
- The current mouse cursor y valuesizex
- Width of the associated widget.sizey
- Height of the associated widget.public void mouse1Down(int keyCode, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel, GralWidget widgg)
GralMouseWidgetAction_ifc
mouse1Down
in interface GralMouseWidgetAction_ifc
public void mouse1Up(int keyCode, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel, GralWidget widgg)
mouse1Up
in interface GralMouseWidgetAction_ifc
GralMouseWidgetAction_ifc.mouse1Up(int, int, int, int, int, org.vishia.gral.base.GralWidget)
public void mouse2Down(int keyCode, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel, GralWidget widgg)
GralMouseWidgetAction_ifc
mouse2Down
in interface GralMouseWidgetAction_ifc
public void mouse2Up(int keyCode, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel, GralWidget widgg)
mouse2Up
in interface GralMouseWidgetAction_ifc
public void mouse1Double(int keyCode, int xMousePixel, int yMousePixel, int xWidgetSizePixel, int yWidgetSizePixel, GralWidget widgg)
mouse1Double
in interface GralMouseWidgetAction_ifc