::tycho::Interactor
-
Source File -
Contents:
protected methods
activate
and deactivate
methods so that
clicking and dragging on a target picture causes corresponding actions
on the target -- in other words, with the default moving behavior,
the picture is moved by clicking and dragging.
It seems like this class goes to a lot of trouble to perform a simple function. However, its real power comes from inheritance, where click-and-drag behavior can be customized for more sophistictaed interaction -- see Gridder, Bounder, and Alonger for examples.
activate
t x y args
activatecommand
option, this method calls the click
method -- subclasses therefore
need only to override click
(and drag
and release
) to alter the
interaction behavior.
deactivate
args