public class PopupMouseFilter extends ExtendedMouseFilterThis class is a mouseFilter that recognizes popup events. Unfortunately, on because of the Diva event dispatch architecture, it is difficult to have interactors receive mouseReleased events, without possibly hiding mousePressed events from other interactors. This class is a workaround for popup menus which uses MouseEvent.isPopupTrigger() for macs, but uses a hardcoded right mouse button for PC's.
- Ptolemy II 2.0
- Steve Neuendorffer
- Red (johnr)
- Red (eal)
Constructors Constructor Description
PopupMouseFilter()Create an attribute controller associated with the specified graph controller.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
accept(java.awt.event.MouseEvent event)Test whether the given MouseEvent passes the filter.