|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstrokes.listeners.StrokeAdapter
strokes.criterions.FlickCriterion
public class FlickCriterion
A criterion that accepts strokes only during 1 second after a small mouse drag.
Constructor Summary | |
---|---|
FlickCriterion(javax.swing.JComponent component,
StrokeShortcuts manager)
Builds a FlickCriterion . |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
boolean |
cancelStroke(java.awt.event.MouseEvent event)
This method is called each time a mouse drag occurs once a stroke has begun. |
boolean |
startStroke(java.awt.event.MouseEvent event)
This method is called each time a mouse press occurs on its associated component. |
void |
strokeNotRecognized(StrokeEvent event)
Invoked when a stroke ends and has not been recognized as a shortcut. |
void |
strokePointAdded(StrokeEvent event)
Invoked when a point is added to a stroke. |
Methods inherited from class strokes.listeners.StrokeAdapter |
---|
shortcutRecognized, strokeBegun, strokeRecognized |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlickCriterion(javax.swing.JComponent component, StrokeShortcuts manager)
FlickCriterion
.
component
- The component on which strokes occurmanager
- The stroke shortcuts managerMethod Detail |
---|
public boolean startStroke(java.awt.event.MouseEvent event)
startStroke
in interface Criterion
event
- The mouse press event
public boolean cancelStroke(java.awt.event.MouseEvent event)
cancelStroke
in interface Criterion
event
- The mouse drag event
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void strokeNotRecognized(StrokeEvent event)
strokeNotRecognized
in interface StrokeListener
strokeNotRecognized
in class StrokeAdapter
event
- The stroke event.public void strokePointAdded(StrokeEvent event)
strokePointAdded
in interface StrokeListener
strokePointAdded
in class StrokeAdapter
event
- The stroke event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |