In an editing system, all user interface events can be translated into implicit or explicit commands. Explain why, in Figure 28.10, the Event object therefore communicates directly with the editor data structure as well as the Command object.
What will be an ideal response?
The Event object communicates directly with the editor data structure to allow
more efficient operation. Some commands that are implicit, such as inserting a
character by pressing a key on a keyboard, require very fast response and, rather
than lookup the command in a separate object, the event processing object
interprets these directly and makes changes to the data structure.
Computer Science & Information Technology