Inherits:
::tycho::Follower
-
Source File -
Contents:
public methods
- public variable
An interactor that keeps the target object within a given region.
The region can either be specified by an option, by the target
picture, or defaults to the size of the slate.
Public constructs
-
click
x y args
- Start the interaction. To find the bounds within which to move
the picture, the interactor first examines its -bounds option.
If that it is null, then it tries to see if the picture responds
to " query bounds"; if that doesn't work, then use the size of the
slate.
-
drag
x y
- Test if the new point is outside the bounds. If it is,
then move to the boundary. Otherwise, move to the
new point.
-
-bounds
- The bounds to move the object between. Note that these bounds
are for the object being moved, not for the cursor.
If null, the bounds are the width and height of the slate.
Index of classes
Author: H. John Reekie
Version: @(#)Bounder.itcl 1.9 12/13/96
Copyright: (c) 1996 The Regents of the University of California.