org.jscience.architecture.traffic.edit
Class EditPopupMenuFactory

java.lang.Object
  extended by org.jscience.architecture.traffic.edit.EditPopupMenuFactory

public class EditPopupMenuFactory
extends java.lang.Object

Factory for creating popup menus for editor


Nested Class Summary
protected  class EditPopupMenuFactory.DefaultGUIObjectListener
          DOCUMENT ME!
protected static interface EditPopupMenuFactory.PopupMenuListener
          DOCUMENT ME!
 
Field Summary
protected  EditController controller
          DOCUMENT ME!
 
Constructor Summary
EditPopupMenuFactory(EditController con)
          Creates a new EditPopupMenuFactory object.
 
Method Summary
protected  java.awt.PopupMenu getDrivelaneMenu(Drivelane l)
          DOCUMENT ME!
protected  java.awt.PopupMenu getGenericMenu(EditPopupMenuFactory.PopupMenuListener pml)
          DOCUMENT ME!
protected  java.awt.PopupMenu getNodeMenu(Node n)
          DOCUMENT ME!
 java.awt.PopupMenu getPopupMenuFor(Selectable obj)
          Creates a right-click PopupMenu for the given object.
protected  java.awt.PopupMenu getRoadMenu(Road r)
          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!

Constructor Detail

EditPopupMenuFactory

public EditPopupMenuFactory(EditController con)
Creates a new EditPopupMenuFactory 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
DOCUMENT ME!

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

getRoadMenu

protected java.awt.PopupMenu getRoadMenu(Road r)
                                  throws PopupException
DOCUMENT ME!

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

getDrivelaneMenu

protected java.awt.PopupMenu getDrivelaneMenu(Drivelane l)
                                       throws PopupException
DOCUMENT ME!

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

getGenericMenu

protected java.awt.PopupMenu getGenericMenu(EditPopupMenuFactory.PopupMenuListener pml)
DOCUMENT ME!

Parameters:
pml - DOCUMENT ME!
Returns:
DOCUMENT ME!