public class SelectionToolSample extends java.lang.Object
SelectionTool uses three smaller tools
(named as 'Tracker') to fulfill its task. If the user presses the mouse
button over an empty area of a drawing, the
comes into action. If the user presses the mouse button over a figure, the
DragTracker comes into action. If the user presses the mouse
button over a handle, the
HandleTracker comes into action.
You need to edit the source code as marked below.
With this program you can:
SelectionToolinteracts with a
SelectAreaTrackerinteracts with a
DragTrackerinteracts with a
HandleTrackerinteracts with a
|Constructor and Description|
Creates a new instance of SelectionToolSample