Package ptolemy.vergil.basic
Class PopupMouseFilter
- java.lang.Object
-
- diva.canvas.event.MouseFilter
-
- diva.canvas.event.ExtendedMouseFilter
-
- ptolemy.vergil.basic.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)
-
-
Field Summary
-
Fields inherited from class diva.canvas.event.ExtendedMouseFilter
alternateSelectionFilter, defaultFilter, selectionFilter
-
-
Constructor Summary
Constructors Constructor Description PopupMouseFilter()
Create an attribute controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.awt.event.MouseEvent event)
Test whether the given MouseEvent passes the filter.-
Methods inherited from class diva.canvas.event.ExtendedMouseFilter
toString
-
-
-
-
Method Detail
-
accept
public boolean accept(java.awt.event.MouseEvent event)
Test whether the given MouseEvent passes the filter.- Overrides:
accept
in classExtendedMouseFilter
-
-