Class PopupMouseFilter


  • public class PopupMouseFilter
    extends ExtendedMouseFilter
    This 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.
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Steve Neuendorffer
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • Constructor Detail

      • PopupMouseFilter

        public PopupMouseFilter()
        Create an attribute controller associated with the specified graph controller.
    • Method Detail

      • accept

        public boolean accept​(java.awt.event.MouseEvent event)
        Test whether the given MouseEvent passes the filter.
        Overrides:
        accept in class ExtendedMouseFilter