|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.event.MouseFilter
A class that accepts mouse events. Instances of this class are used by event-handling code to decide whether they are interested in a particular event.
| Field Summary | |
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 Summary | |
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. |
|
| Method Summary | |
boolean |
accept(java.awt.event.MouseEvent event)
Test whether the given MouseEvent passes the filter. |
java.lang.String |
toString()
Print a useful description of the mouse filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static MouseFilter defaultFilter
public static MouseFilter selectionFilter
public static MouseFilter alternateSelectionFilter
| Constructor Detail |
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)
| Method Detail |
public boolean accept(java.awt.event.MouseEvent event)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||