Package xyz.cofe.term.common.ev
Class InputMouseButtonEventBase
- java.lang.Object
-
- xyz.cofe.term.common.ev.InputMouseButtonEventBase
-
- All Implemented Interfaces:
InputEvent,InputMouseButtonEvent,InputMouseEvent
- Direct Known Subclasses:
NixInputMouseButtonEvent,WinInputMouseButtonEvent
public class InputMouseButtonEventBase extends Object implements InputMouseButtonEvent
-
-
Field Summary
Fields Modifier and Type Field Description protected MouseButtonbuttonprotected Positionpositionprotected booleanpressed
-
Constructor Summary
Constructors Constructor Description InputMouseButtonEventBase(MouseButton button, boolean pressed, Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MouseButtonbutton()Какая клавиша была нажатаPositionposition()Координата в которой была нажата клавишаbooleanpressed()Клавиша была нажата или отпущена
-
-
-
Field Detail
-
button
protected MouseButton button
-
pressed
protected boolean pressed
-
position
protected Position position
-
-
Constructor Detail
-
InputMouseButtonEventBase
public InputMouseButtonEventBase(MouseButton button, boolean pressed, Position position)
-
-
Method Detail
-
button
public MouseButton button()
Description copied from interface:InputMouseButtonEventКакая клавиша была нажата- Specified by:
buttonin interfaceInputMouseButtonEvent- Returns:
- клавиша
-
pressed
public boolean pressed()
Description copied from interface:InputMouseButtonEventКлавиша была нажата или отпущена- Specified by:
pressedin interfaceInputMouseButtonEvent- Returns:
- true - нажата клавиша; false - отпущена клавиша
-
position
public Position position()
Description copied from interface:InputMouseButtonEventКоордината в которой была нажата клавиша- Specified by:
positionin interfaceInputMouseButtonEvent- Returns:
- кооржинаты
-
-