org.jhotdraw.contrib
Class CompositeFigureCreationTool

java.lang.Object
  extended by org.jhotdraw.standard.AbstractTool
      extended by org.jhotdraw.standard.CreationTool
          extended by org.jhotdraw.contrib.CompositeFigureCreationTool
All Implemented Interfaces:
Tool

public class CompositeFigureCreationTool
extends CreationTool

Version:
<$CURRENT_VERSION$>
Author:
Wolfram Kaiser

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.standard.AbstractTool
AbstractTool.EventDispatcher
 
Constructor Summary
CompositeFigureCreationTool(DrawingEditor newDrawingEditor, Figure prototype)
           
 
Method Summary
 CompositeFigure getContainerFigure()
           
 void mouseDown(java.awt.event.MouseEvent e, int x, int y)
          Creates a new figure by cloning the prototype.
 void mouseMove(java.awt.event.MouseEvent e, int x, int y)
          Handles mouse moves (if the mouse button is up).
 
Methods inherited from class org.jhotdraw.standard.CreationTool
activate, deactivate, mouseDrag, mouseUp
 
Methods inherited from class org.jhotdraw.standard.AbstractTool
addToolListener, drawing, editor, getActiveDrawing, getActiveView, getUndoActivity, isActive, isEnabled, isUsable, keyDown, removeToolListener, setEnabled, setUndoActivity, setUsable, view
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFigureCreationTool

public CompositeFigureCreationTool(DrawingEditor newDrawingEditor,
                                   Figure prototype)
Method Detail

mouseDown

public void mouseDown(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Description copied from class: CreationTool
Creates a new figure by cloning the prototype.

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

mouseMove

public void mouseMove(java.awt.event.MouseEvent e,
                      int x,
                      int y)
Description copied from class: AbstractTool
Handles mouse moves (if the mouse button is up).

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

getContainerFigure

public CompositeFigure getContainerFigure()