org.jscience.architecture.traffic.tools
Class RoadTool

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

public class RoadTool
extends PopupMenuTool

You click on two Nodes with a RoadTool to create a Road.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.architecture.traffic.tools.Tool
Tool.Mask
 
Field Summary
protected  RoadAction ra
          DOCUMENT ME!
 
Fields inherited from class org.jscience.architecture.traffic.tools.PopupMenuTool
pma
 
Constructor Summary
RoadTool(EditController c)
          Creates a new RoadTool 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

ra

protected RoadAction ra
DOCUMENT ME!

Constructor Detail

RoadTool

public RoadTool(EditController c)
Creates a new RoadTool 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!

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!

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!

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!