org.jscience.architecture.traffic.tools
Class MoveTool

java.lang.Object
  extended by org.jscience.architecture.traffic.tools.PopupMenuTool
      extended by org.jscience.architecture.traffic.tools.MoveTool
All Implemented Interfaces:
Overlay, Tool

public class MoveTool
extends PopupMenuTool

Uses the MoveAction to move nodes


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.architecture.traffic.tools.Tool
Tool.Mask
 
Field Summary
protected  MoveAction ma
          DOCUMENT ME!
 
Fields inherited from class org.jscience.architecture.traffic.tools.PopupMenuTool
pma
 
Constructor Summary
MoveTool(EditController c)
          Creates a new MoveTool object.
 
Method Summary
 java.awt.Panel getPanel()
          DOCUMENT ME!
 void mouseMoved(View view, java.awt.Point p, Tool.Mask mask)
          DOCUMENT ME!
 void mousePressed(View view, java.awt.Point p, Tool.Mask mask)
          DOCUMENT ME!
 void mouseReleased(View view, java.awt.Point p, Tool.Mask mask)
          DOCUMENT ME!
 int overlayType()
          DOCUMENT ME!
 void paint(java.awt.Graphics g)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.architecture.traffic.tools.PopupMenuTool
getPopupMenuAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ma

protected MoveAction ma
DOCUMENT ME!

Constructor Detail

MoveTool

public MoveTool(EditController c)
Creates a new MoveTool object.

Parameters:
c - DOCUMENT ME!
Method Detail

mousePressed

public void mousePressed(View view,
                         java.awt.Point p,
                         Tool.Mask mask)
DOCUMENT ME!

Specified by:
mousePressed in interface Tool
Overrides:
mousePressed in class PopupMenuTool
Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!
mask - DOCUMENT ME!

mouseMoved

public void mouseMoved(View view,
                       java.awt.Point p,
                       Tool.Mask mask)
DOCUMENT ME!

Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!
mask - DOCUMENT ME!

mouseReleased

public void mouseReleased(View view,
                          java.awt.Point p,
                          Tool.Mask mask)
DOCUMENT ME!

Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!
mask - DOCUMENT ME!

overlayType

public int overlayType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

paint

public void paint(java.awt.Graphics g)
           throws TrafficException
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
Throws:
TrafficException - DOCUMENT ME!

getPanel

public java.awt.Panel getPanel()
DOCUMENT ME!

Returns:
DOCUMENT ME!