org.jscience.architecture.traffic.simulation
Class SimPopupMenuFactory

java.lang.Object
  extended by org.jscience.architecture.traffic.simulation.SimPopupMenuFactory

public class SimPopupMenuFactory
extends java.lang.Object

Factory for creating popup menus for editor


Nested Class Summary
protected static class SimPopupMenuFactory.EdgeNodePopupListener
          DOCUMENT ME!
protected static class SimPopupMenuFactory.JunctionPopupListener
          DOCUMENT ME!
protected static class SimPopupMenuFactory.LanePopupListener
          DOCUMENT ME!
protected static class SimPopupMenuFactory.NetTunnelPopupListener
          DOCUMENT ME!
protected static interface SimPopupMenuFactory.PopupMenuListener
           
protected static class SimPopupMenuFactory.RoadPopupListener
          DOCUMENT ME!
 
Field Summary
protected  SimController controller
          DOCUMENT ME!
 
Constructor Summary
SimPopupMenuFactory(SimController con)
          Creates a new SimPopupMenuFactory object.
 
Method Summary
protected  java.awt.PopupMenu getDrivelaneMenu(Drivelane l)
           
protected  java.awt.PopupMenu getEdgeNodeMenu(EdgeNode edge)
          DOCUMENT ME!
protected  java.awt.PopupMenu getJunctionMenu(Junction junction)
          DOCUMENT ME!
protected  java.awt.PopupMenu getNetTunnelMenu(NetTunnel tunnel)
          DOCUMENT ME!
protected  java.awt.PopupMenu getNodeMenu(Node n)
           
 java.awt.PopupMenu getPopupMenuFor(Selectable obj)
          Creates a right-click PopupMenu for the given object.
protected  java.awt.PopupMenu getRoadMenu(Road r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected SimController controller
DOCUMENT ME!

Constructor Detail

SimPopupMenuFactory

public SimPopupMenuFactory(SimController con)
Creates a new SimPopupMenuFactory object.

Parameters:
con - DOCUMENT ME!
Method Detail

getPopupMenuFor

public java.awt.PopupMenu getPopupMenuFor(Selectable obj)
                                   throws PopupException
Creates a right-click PopupMenu for the given object. A listener is added to the menu as well.

Parameters:
obj - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
PopupException - DOCUMENT ME!

getNodeMenu

protected java.awt.PopupMenu getNodeMenu(Node n)
                                  throws PopupException
Throws:
PopupException

getEdgeNodeMenu

protected java.awt.PopupMenu getEdgeNodeMenu(EdgeNode edge)
DOCUMENT ME!

Parameters:
edge - DOCUMENT ME!
Returns:
DOCUMENT ME!

getNetTunnelMenu

protected java.awt.PopupMenu getNetTunnelMenu(NetTunnel tunnel)
DOCUMENT ME!

Parameters:
tunnel - DOCUMENT ME!
Returns:
DOCUMENT ME!

getJunctionMenu

protected java.awt.PopupMenu getJunctionMenu(Junction junction)
DOCUMENT ME!

Parameters:
junction - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRoadMenu

protected java.awt.PopupMenu getRoadMenu(Road r)

getDrivelaneMenu

protected java.awt.PopupMenu getDrivelaneMenu(Drivelane l)