UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.satin.event
Interface StrokeListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
GraphicalObject, GraphicalObjectGroup, Interpreter, MultiInterpreter, Patch
All Known Implementing Classes:
GraphicalObjectGroupImpl, GraphicalObjectImpl, Sheet

public interface StrokeListener
extends EventListener

Marker interface for classes that can handle Strokes.

This software is distributed under the Berkeley Software License.

 Revisions:  - SATIN-v1.0-1.0.0, May 15 1998, JH
               Created class
             - SATIN-v2.1-1.0.0, Aug 11 2000, JH
               Touched for SATIN release
 

Since:
JDK 1.2
Version:
SATIN-v2.1-1.0.0, Aug 11 2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )

Method Summary
 void handleNewStroke(NewStrokeEvent evt)
          This callback is called when the stroke should be handled by this object.
 void handleSingleStroke(SingleStrokeEvent evt)
           
 void handleUpdateStroke(UpdateStrokeEvent evt)
           
 

Method Detail

handleNewStroke

public void handleNewStroke(NewStrokeEvent evt)
This callback is called when the stroke should be handled by this object. If you, the listener, have consumed the Stroke, then call SatinEvent.setConsumed() with true to signify that it is consumed and no one else should handle it. Furthermore, if you don't want the stroke to be rendered, then call SatinEvent.setShouldRender(boolean) with false. By default, the stroke will be rendered.
Parameters:
evt - is the event to handle.

handleUpdateStroke

public void handleUpdateStroke(UpdateStrokeEvent evt)
See Also:
handleNewStroke(NewStrokeEvent).

handleSingleStroke

public void handleSingleStroke(SingleStrokeEvent evt)
See Also:
handleNewStroke(NewStrokeEvent).

Copyright Information