Commands, interactors, and cursor tools

In GrafEdit all end-user interaction involves clicking and dragging the mouse on the canvas view to draw and modify canvas graphics. GrafEdit provides three types of classes so that you can define commands to change the canvas graphics, interactors to define mouse behavior, and cursor tools to provide a flexible and extensible programming model.

Cursor tools launch interaction by creating and starting interactors, and the interactors create and execute commands. GrafEdit provides the most common commands for manipulating and setting the attributes of canvas graphics. This chapter describes how to implement custom commands, interactors, and cursor tools. The Mars sample application has an example implementation that is described in the code walkthough in Chapter 4, "Mars sample application code walkthrough".

Commands
Interactors
Cursor tool handling

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker