org.jscience.architecture.traffic.tools
Class TotalEditTool

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

public class TotalEditTool
extends java.lang.Object
implements Tool

This tool allows you to do everything at once. It implements the RoadTool, NodeTool, MoveTool, ScrollTool, ZoomTool and, later, the EdgeNodeTool


Nested Class Summary
protected  class TotalEditTool.NodeTypeChoice
          DOCUMENT ME!
 
Nested classes/interfaces inherited from interface org.jscience.architecture.traffic.tools.Tool
Tool.Mask
 
Field Summary
protected  EditController controller
          DOCUMENT ME!
protected  TotalEditTool.NodeTypeChoice typePanel
          DOCUMENT ME!
 
Constructor Summary
TotalEditTool(EditController ec)
          Creates a new TotalEditTool 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected EditController controller
DOCUMENT ME!


typePanel

protected TotalEditTool.NodeTypeChoice typePanel
DOCUMENT ME!

Constructor Detail

TotalEditTool

public TotalEditTool(EditController ec)
Creates a new TotalEditTool object.

Parameters:
ec - 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
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!

Specified by:
mouseReleased in interface Tool
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!

Specified by:
mouseMoved in interface Tool
Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!
mask - DOCUMENT ME!

overlayType

public int overlayType()
DOCUMENT ME!

Specified by:
overlayType in interface Overlay
Returns:
DOCUMENT ME!

paint

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

Specified by:
paint in interface Overlay
Parameters:
g - DOCUMENT ME!
Throws:
TrafficException - DOCUMENT ME!

getPanel

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

Specified by:
getPanel in interface Tool
Returns:
DOCUMENT ME!