|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstrokes.listeners.StrokeAdapter
public class StrokeAdapter
An abstract adapter class for receiving stroke events. The methods in this class are empty. This class exists as convenience for creating listener objects.
Stroke events let you track when a stroke begins, receives a new point and ends as a recognized shortcut or as non recognized.
Extend this class to create a StrokeEvent
listener and
override the methods for the events of interest.
(If you implement the StrokeListener
interface,
you have to define all of the methods in it.
This abstract class defines null methods for them all,
so you can only have to define methods for events you care about.)
Create a listener object using the extended class and then register it with a component using the stroke shortcut manager's addStrokeListener method.
Constructor Summary | |
---|---|
StrokeAdapter()
|
Method Summary | |
---|---|
void |
shortcutRecognized(StrokeEvent event)
Invoked when a stroke ends and has not been recognized as a shortcut. |
void |
strokeBegun(StrokeEvent event)
Invoked when a stroke begins. |
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. |
void |
strokeRecognized(StrokeEvent event)
Invoked when a stroke ends and has been recognized by the stroke shortcuts manager but not as as a shortcut. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrokeAdapter()
Method Detail |
---|
public void strokeBegun(StrokeEvent event)
strokeBegun
in interface StrokeListener
event
- The stroke event.public void strokePointAdded(StrokeEvent event)
strokePointAdded
in interface StrokeListener
event
- The stroke event.public void strokeNotRecognized(StrokeEvent event)
strokeNotRecognized
in interface StrokeListener
event
- The stroke event.public void shortcutRecognized(StrokeEvent event)
shortcutRecognized
in interface StrokeListener
event
- The stroke event.public void strokeRecognized(StrokeEvent event)
strokeRecognized
in interface StrokeListener
event
- The stroke event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |