TrustGrapher  r52
A playabale simulator for modelling trust between agents
cu.trustGrapher.visualizer.ViewerPopupMenu Class Reference
Inheritance diagram for cu.trustGrapher.visualizer.ViewerPopupMenu:
Collaboration diagram for cu.trustGrapher.visualizer.ViewerPopupMenu:

List of all members.

Public Member Functions

 ViewerPopupMenu (final DefaultModalGraphMouse< Agent, TestbedEdge > gm, ActionListener listener)
void showPopupMenu (GraphViewer newViewer)
void popupMenuEvent (String text)

Detailed Description

Initializes the right-click menu components and event handlers (Does not contain the listener)

Author:
Andrew O'Hara

Definition at line 21 of file ViewerPopupMenu.java.


Constructor & Destructor Documentation

cu.trustGrapher.visualizer.ViewerPopupMenu.ViewerPopupMenu ( final DefaultModalGraphMouse< Agent, TestbedEdge gm,
ActionListener  listener 
)

Initializes the popup menu.

Parameters:
gmThe mouse Adapter that handles most mouse clicks on the GraphViewer
listenerThe listener that handles the mouse clicks that pertain to this ViewerPopupMenu

Definition at line 31 of file ViewerPopupMenu.java.


Member Function Documentation

void cu.trustGrapher.visualizer.ViewerPopupMenu.popupMenuEvent ( String  text)

Handles popup menu button clicks

Parameters:
textThe text of the button that was just clicked

Definition at line 71 of file ViewerPopupMenu.java.

Here is the call graph for this function:

void cu.trustGrapher.visualizer.ViewerPopupMenu.showPopupMenu ( GraphViewer  newViewer)

Shows the popup menu on the current GraphViewer

Definition at line 61 of file ViewerPopupMenu.java.


The documentation for this class was generated from the following file: