TrustGrapher
r52
A playabale simulator for modelling trust between agents
|
Public Member Functions | |
ViewerPopupMenu (final DefaultModalGraphMouse< Agent, TestbedEdge > gm, ActionListener listener) | |
void | showPopupMenu (GraphViewer newViewer) |
void | popupMenuEvent (String text) |
Initializes the right-click menu components and event handlers (Does not contain the listener)
Definition at line 21 of file ViewerPopupMenu.java.
cu.trustGrapher.visualizer.ViewerPopupMenu.ViewerPopupMenu | ( | final DefaultModalGraphMouse< Agent, TestbedEdge > | gm, |
ActionListener | listener | ||
) |
Initializes the popup menu.
gm | The mouse Adapter that handles most mouse clicks on the GraphViewer |
listener | The listener that handles the mouse clicks that pertain to this ViewerPopupMenu |
Definition at line 31 of file ViewerPopupMenu.java.
void cu.trustGrapher.visualizer.ViewerPopupMenu.popupMenuEvent | ( | String | text | ) |
Handles popup menu button clicks
text | The text of the button that was just clicked |
Definition at line 71 of file ViewerPopupMenu.java.
void cu.trustGrapher.visualizer.ViewerPopupMenu.showPopupMenu | ( | GraphViewer | newViewer | ) |
Shows the popup menu on the current GraphViewer
Definition at line 61 of file ViewerPopupMenu.java.