JHotDraw 6.0b1

org.jhotdraw.samples.javadraw
Class MySelectionTool

java.lang.Object
  extended by org.jhotdraw.standard.AbstractTool
      extended by org.jhotdraw.standard.SelectionTool
          extended by org.jhotdraw.samples.javadraw.MySelectionTool
All Implemented Interfaces:
Tool

public class MySelectionTool
extends SelectionTool

A SelectionTool that interprets double clicks to inspect the clicked figure


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractTool
AbstractTool.EventDispatcher
 
Constructor Summary
MySelectionTool(DrawingEditor newDrawingEditor)
           
 
Method Summary
protected  void inspectFigure(Figure f)
           
 void mouseDown(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse down events and starts the corresponding tracker.
 
Methods inherited from class org.jhotdraw.standard.SelectionTool
createAreaTracker, createDragTracker, createHandleTracker, getDelegateTool, mouseDrag, mouseMove, mouseUp, setDelegateTool
 
Methods inherited from class org.jhotdraw.standard.AbstractTool
activate, addToolListener, checkUsable, createEventDispatcher, createViewChangeListener, deactivate, drawing, editor, getActiveDrawing, getActiveView, getAnchorX, getAnchorY, getEventDispatcher, getUndoActivity, isActive, isEnabled, isUsable, keyDown, removeToolListener, setAnchorX, setAnchorY, setEditor, setEnabled, setUndoActivity, setUsable, setView, view, viewCreated, viewDestroying, viewSelectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySelectionTool

public MySelectionTool(DrawingEditor newDrawingEditor)
Method Detail

mouseDown

public void mouseDown(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Handles mouse down events and starts the corresponding tracker.

Specified by:
mouseDown in interface Tool
Overrides:
mouseDown in class SelectionTool

inspectFigure

protected void inspectFigure(Figure f)

JHotDraw 6.0b1