org.graffiti.plugin.view.interactive
Interface PopupMenuCompatibleProvider

All Superinterfaces:
GestureFeedbackProvider

public interface PopupMenuCompatibleProvider
extends GestureFeedbackProvider

GestureFeedbackProviders implementing PopupMenuCompatibleProvider support showing a popup menu.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
PopupMenuItem, PopupMenuSelectionGesture

Method Summary
 void relayMenuSelectionGesture(PopupMenuSelectionGesture pmsg)
          Makes the InteractiveView that handed out this GestureFeedbackProvider pass the specified PopupMenuCompatibleProvider to its dispatcher.
 void show(JPopupMenu menu, double x, double y)
          Shows the specified popup menu over the main component of the view that handed out this GestureFeedbackProvider.
 
Methods inherited from interface org.graffiti.plugin.view.interactive.GestureFeedbackProvider
reset
 

Method Detail

show

void show(JPopupMenu menu,
          double x,
          double y)
Shows the specified popup menu over the main component of the view that handed out this GestureFeedbackProvider.

Parameters:
menu - the popup menu to be shown.
x - the x coordinate position to popup the menu. The referred coordinate system is left to the InteractiveView that handed out this GestureFeedbackProvider.
y - the y coordinate position to popup the menu.

relayMenuSelectionGesture

void relayMenuSelectionGesture(PopupMenuSelectionGesture pmsg)
Makes the InteractiveView that handed out this GestureFeedbackProvider pass the specified PopupMenuCompatibleProvider to its dispatcher. This mechanism allows actions to create very generic popup menu items. These items are then not hard-wired with specific actions but rather correspond to user gestures, which can be dynamically linked to actions by the trigger/action/tool system.

Parameters:
pmsg - the PopupMenuSelectionGesture to pass to the dispatcher.
See Also:
InteractiveView.setUserGestureDispatcher(UserGestureListener)


Generated at 2012-05-30 11:00:36 PM CEST