Documentation of 'org.jhotdraw.samples.mini.SelectionToolSample' Java class
SelectionToolSample
org.jhotdraw.samples.mini

Class SelectionToolSample



  • public class SelectionToolSample
    extends java.lang.Object
    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:

    1. See how the SelectionTool interacts with a LineFigure.
    2. See how the SelectAreaTracker interacts with a LineFigure.
    3. See how the DragTracker interacts with a LineFigure.
    4. See how the HandleTracker interacts with a LineFigure.
    • 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 void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SelectionToolSample

        public SelectionToolSample()
        Creates a new instance of SelectionToolSample
    • Method Detail

      • main

        public static void main(java.lang.String[] args)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.