|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.samples.mini.SelectionToolSample
public class SelectionToolSample
SelectionToolSample demonstrates how the SelectionTool works.
Internally, the 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 SelectAreaTracker
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:
SelectionTool interacts with a
LineFigure.SelectAreaTracker interacts with a
LineFigure.DragTracker interacts with a
LineFigure.HandleTracker interacts with a
LineFigure.
| Constructor Summary | |
|---|---|
SelectionToolSample()
Creates a new instance of SelectionToolSample |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionToolSample()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||