CH.ifa.draw.samples.javadraw
Class MySelectionTool

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractTool
      extended by CH.ifa.draw.standard.SelectionTool
          extended by CH.ifa.draw.samples.javadraw.MySelectionTool
All Implemented Interfaces:
Tool

public class MySelectionTool
extends SelectionTool

A SelectionTool that interprets double clicks to inspect the clicked figure


Field Summary
 
Fields inherited from class CH.ifa.draw.standard.AbstractTool
fAnchorX, fAnchorY, fView
 
Constructor Summary
MySelectionTool(DrawingView view)
           
 
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 CH.ifa.draw.standard.SelectionTool
createAreaTracker, createDragTracker, createHandleTracker, mouseDrag, mouseUp
 
Methods inherited from class CH.ifa.draw.standard.AbstractTool
activate, deactivate, drawing, editor, keyDown, mouseMove, view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySelectionTool

public MySelectionTool(DrawingView view)
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)