public class MouseBindings
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
MouseBindings.MouseAction |
Modifier and Type | Field and Description |
---|---|
static int |
ALT
Alt key
|
static int |
CTRL
Control key
|
static MouseBindings |
Default |
static MouseBindings |
Kees |
static MouseBindings |
Laptop |
static int |
LMB
Left mouse button
|
static MouseBindings |
Mac |
static int |
META
Meta key: usually bound to the Command or Windows key
|
static int |
MMB
Middle mouse button
|
static MouseBindings |
OneButton |
static int |
RMB
Right mouse button
|
static int |
SHIFT
Shift key
|
static MouseBindings |
ThreeButton |
static MouseBindings |
TwoButton |
Constructor and Description |
---|
MouseBindings() |
MouseBindings(MouseBindings bindings) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GLMouseAdapter adapter,
int numButtons) |
MouseBindings |
clone() |
static MouseBindings |
createDefaultBindings()
Create a default set of mouse bindings based on the number
of mouse buttons.
|
int |
getActionMask(MouseBindings.MouseAction action) |
java.lang.String |
getName() |
void |
set(MouseBindings bindings) |
void |
setAction(MouseBindings.MouseAction action,
int value) |
void |
setName(java.lang.String name) |
public static final int LMB
public static final int MMB
public static final int RMB
public static final int SHIFT
public static final int CTRL
public static final int ALT
public static final int META
public static final MouseBindings ThreeButton
public static final MouseBindings TwoButton
public static final MouseBindings OneButton
public static final MouseBindings Laptop
public static final MouseBindings Mac
public static final MouseBindings Kees
public static final MouseBindings Default
public MouseBindings()
public MouseBindings(MouseBindings bindings)
public java.lang.String getName()
public void setName(java.lang.String name)
public void setAction(MouseBindings.MouseAction action, int value)
public void set(MouseBindings bindings)
public void apply(GLMouseAdapter adapter, int numButtons)
public int getActionMask(MouseBindings.MouseAction action)
public static MouseBindings createDefaultBindings()
public MouseBindings clone()
clone
in class java.lang.Object