public class MouseFilter extends Object
Modifier and Type | Field and Description |
---|---|
static MouseFilter |
alternateSelectionFilter
The alternate selection filter -- accepts button 1 with shift.
|
static MouseFilter |
defaultFilter
The default mouse filter -- accepts button 1 with no
modifiers.
|
static MouseFilter |
selectionFilter
The default selection filter -- accepts button 1 with no
modifiers.
|
Constructor and Description |
---|
MouseFilter(int button)
Construct a mouse filter that responds to the given mouse buttons
and modifier keys.
|
MouseFilter(int button,
int modifiers)
Construct a mouse filter that responds to the given mouse
buttons and modifier keys.
|
MouseFilter(int button,
int modifiers,
int mask)
Construct a mouse filter that responds to the given mouse buttons
and modifier keys.
|
MouseFilter(int button,
int modifiers,
int mask,
int pressNumber)
Construct a mouse filter that responds to the given mouse buttons
and modifier keys.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MouseEvent event)
Test whether the given MouseEvent passes the filter.
|
String |
toString()
Print a useful description of the mouse filter.
|
public static MouseFilter defaultFilter
public static MouseFilter selectionFilter
public static MouseFilter alternateSelectionFilter
public MouseFilter(int button)
public MouseFilter(int button, int modifiers)
public MouseFilter(int button, int modifiers, int mask)
public MouseFilter(int button, int modifiers, int mask, int pressNumber)
public boolean accept(MouseEvent event)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.