JHotDraw 6.0b1

org.jhotdraw.standard
Class SelectAreaTracker

java.lang.Object
  extended by org.jhotdraw.standard.AbstractTool
      extended by org.jhotdraw.standard.SelectAreaTracker
All Implemented Interfaces:
Tool

public class SelectAreaTracker
extends AbstractTool

SelectAreaTracker implements a rubberband selection of an area.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractTool
AbstractTool.EventDispatcher
 
Constructor Summary
SelectAreaTracker(DrawingEditor newDrawingEditor)
           
SelectAreaTracker(DrawingEditor newDrawingEditor, java.awt.Color rubberBandColor)
           
 
Method Summary
 void mouseDown(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse down events in the drawing view.
 void mouseDrag(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse drag events in the drawing view.
 void mouseUp(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse up in the drawing view.
 
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, mouseMove, 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

SelectAreaTracker

public SelectAreaTracker(DrawingEditor newDrawingEditor)

SelectAreaTracker

public SelectAreaTracker(DrawingEditor newDrawingEditor,
                         java.awt.Color rubberBandColor)
Method Detail

mouseDown

public void mouseDown(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Description copied from class: AbstractTool
Handles mouse down events in the drawing view.

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

mouseDrag

public void mouseDrag(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Description copied from class: AbstractTool
Handles mouse drag events in the drawing view.

Specified by:
mouseDrag in interface Tool
Overrides:
mouseDrag in class AbstractTool

mouseUp

public void mouseUp(java.awt.event.MouseEvent e,
                    int x,
                    int y)
Description copied from class: AbstractTool
Handles mouse up in the drawing view.

Specified by:
mouseUp in interface Tool
Overrides:
mouseUp in class AbstractTool

JHotDraw 6.0b1