Class SelectionTool

All Implemented Interfaces:
Tool, PropertyBean, Disableable

public class SelectionTool extends AbstractTool
A tool to select and manipulate figures.

A selection tool is in one of three states:

  1. area selection
  2. figure dragging
  3. handle manipulation
The different states are handled by different tracker objects: the SimpleSelectAreaTracker, the SimpleDragTracker and the SimpleHandleTracker.

A Figure can be selected by clicking at it. Holding the alt key or the ctrl key down, selects the Figure behind it.

Holding down the shift key on mouse pressed, enforces the area selection function.

Author:
Werner Randelshofer