- java.lang.Object
-
- com.googlecode.lanterna.input.KeyStroke
-
- com.googlecode.lanterna.input.ScreenInfoAction
-
public class ScreenInfoAction extends KeyStroke
ScreenInfoAction, a KeyStroke in disguise, this class contains the reported position of the screen cursor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.googlecode.lanterna.input.KeyStroke
KeyStroke.RealF3
-
-
Field Summary
Fields Modifier and Type Field Description private TerminalPosition
position
-
Constructor Summary
Constructors Constructor Description ScreenInfoAction(TerminalPosition position)
Constructs a ScreenInfoAction based on a location on the screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalPosition
getPosition()
The location of the mouse cursor when this event was generated.java.lang.String
toString()
-
Methods inherited from class com.googlecode.lanterna.input.KeyStroke
equals, fromString, getCharacter, getEventTime, getKeyType, hashCode, isAltDown, isCtrlDown, isShiftDown
-
-
-
-
Field Detail
-
position
private final TerminalPosition position
-
-
Constructor Detail
-
ScreenInfoAction
public ScreenInfoAction(TerminalPosition position)
Constructs a ScreenInfoAction based on a location on the screen- Parameters:
position
- the TerminalPosition reported from terminal
-
-
Method Detail
-
getPosition
public TerminalPosition getPosition()
The location of the mouse cursor when this event was generated.- Returns:
- Location of the mouse cursor
-
-