A Scala program that simulates a simple interactive graphical editor.