public class MouseAction extends KeyStroke
KeyStroke.RealF3
Constructor | Description |
---|---|
MouseAction(MouseActionType actionType,
int button,
TerminalPosition position) |
Constructs a MouseAction based on an action type, a button and a location on the screen
|
Modifier and Type | Method | Description |
---|---|---|
MouseActionType |
getActionType() |
Returns the mouse action type so the caller can determine which kind of action was performed.
|
int |
getButton() |
Which button was involved in this event.
|
TerminalPosition |
getPosition() |
The location of the mouse cursor when this event was generated.
|
String |
toString() |
equals, fromString, getCharacter, getEventTime, getKeyType, hashCode, isAltDown, isCtrlDown, isShiftDown
public MouseAction(MouseActionType actionType, int button, TerminalPosition position)
actionType
- The kind of mouse eventbutton
- Which button is involved (no button = 0, left button = 1, middle (wheel) button = 2,
right button = 3, scroll wheel up = 4, scroll wheel down = 5)position
- Where in the terminal is the mouse cursor locatedpublic MouseActionType getActionType()
public int getButton()
public TerminalPosition getPosition()
Copyright © 2020. All rights reserved.