edu.mit.sketch.system
Class ViewController
java.lang.Object
|
+--edu.mit.sketch.system.ViewController
- All Implemented Interfaces:
- StrokeDataListener
- public class ViewController
- extends Object
- implements StrokeDataListener
This class handles the user events from the surface. It is part of
a Model-View-Controller design patern. This controller listens for
StrokeDataEvents, creates BBStrokes, and passes them to the
blackboard. It also makes sure that the Surface is registered with
the blackboard so that when the blackboard is udated the Surface can
redisplay itself.
Created: Thu Nov 8 16:58:33 2001
Copyright: Copyright (C) 2001 by MIT. All Rights Reserved.
|
Method Summary |
void |
handleStroke(StrokeData strokeData)
This method is called by classes that collect StrokeData objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewController
public ViewController(BlackboardSystem system,
SurfaceView surface)
handleStroke
public void handleStroke(StrokeData strokeData)
- Description copied from interface:
StrokeDataListener
- This method is called by classes that collect StrokeData objects.
- Specified by:
handleStroke in interface StrokeDataListener
- Parameters:
strokeData - The stroke that the SketchPanel is sending to
us.