org.jhotdraw.samples.mini
Class SelectionToolSample
- java.lang.Object
-
- org.jhotdraw.samples.mini.SelectionToolSample
-
public class SelectionToolSample extends java.lang.ObjectSelectionToolSample demonstrates how theSelectionToolworks.Internally, the
SelectionTooluses three smaller tools (named as 'Tracker') to fulfill its task. If the user presses the mouse button over an empty area of a drawing, theSelectAreaTrackercomes into action. If the user presses the mouse button over a figure, theDragTrackercomes into action. If the user presses the mouse button over a handle, theHandleTrackercomes into action.You need to edit the source code as marked below.
With this program you can:
- See how the
SelectionToolinteracts with aLineFigure. - See how the
SelectAreaTrackerinteracts with aLineFigure. - See how the
DragTrackerinteracts with aLineFigure. - See how the
HandleTrackerinteracts with aLineFigure.
- See how the
-
-
Constructor Summary
Constructors Constructor and Description SelectionToolSample()Creates a new instance of SelectionToolSample
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)
-
DataMelt 3.0 © DataMelt by jWork.ORG