org.objectweb.jac.ide.diagrams
Class ClassFigureCreationTool

java.lang.Object
  |
  +--CH.ifa.draw.standard.AbstractTool
        |
        +--CH.ifa.draw.standard.CreationTool
              |
              +--org.objectweb.jac.ide.diagrams.CreationTool
                    |
                    +--org.objectweb.jac.ide.diagrams.ClassFigureCreationTool
All Implemented Interfaces:
EventListener, CH.ifa.draw.framework.Tool, CH.ifa.draw.framework.ViewChangeListener

public class ClassFigureCreationTool
extends CreationTool


Field Summary
 
Fields inherited from class CH.ifa.draw.standard.AbstractTool
fAnchorX, fAnchorY
 
Constructor Summary
ClassFigureCreationTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor, DisplayContext context)
           
 
Method Summary
 void importClass(Class cl, boolean importRelations)
          Import class
 Collection importClassChoice()
           
 void mouseDown(MouseEvent e, int x, int y)
          Creates a new figure by cloning the prototype.
 void mouseUp(MouseEvent e, int x, int y)
           
 
Methods inherited from class org.objectweb.jac.ide.diagrams.CreationTool
isActive, mouseDrag
 
Methods inherited from class CH.ifa.draw.standard.CreationTool
activate, createFigure, getAddedFigure, getAnchorPoint, getCreatedFigure
 
Methods inherited from class CH.ifa.draw.standard.AbstractTool
addToolListener, checkUsable, createEventDispatcher, deactivate, drawing, editor, getEventDispatcher, isEnabled, isUsable, keyDown, mouseMove, removeToolListener, setEnabled, setUsable, view, viewCreated, viewDestroying, viewSelectionChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFigureCreationTool

public ClassFigureCreationTool(CH.ifa.draw.framework.DrawingEditor newDrawingEditor,
                               DisplayContext context)
Method Detail

mouseDown

public void mouseDown(MouseEvent e,
                      int x,
                      int y)
Creates a new figure by cloning the prototype.

Specified by:
mouseDown in interface CH.ifa.draw.framework.Tool
Overrides:
mouseDown in class CH.ifa.draw.standard.CreationTool

mouseUp

public void mouseUp(MouseEvent e,
                    int x,
                    int y)
Specified by:
mouseUp in interface CH.ifa.draw.framework.Tool
Overrides:
mouseUp in class CH.ifa.draw.standard.CreationTool

importClass

public void importClass(Class cl,
                        boolean importRelations)
Import class

Parameters:
cl - the class to import
importRelations - wether to also import relations with other classes on the diagram

importClassChoice

public Collection importClassChoice()