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: PopupMouseFilter.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Steve Neuendorffer
- Accepted Rating:
- Proposed Rating:
Constructor Summary |
PopupMouseFilter()
Create an attribute controller associated with the specified graph
controller. |
Method Summary |
boolean |
accept(java.awt.event.MouseEvent event)
Test whether the given MouseEvent passes the filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PopupMouseFilter
public PopupMouseFilter()
- Create an attribute controller associated with the specified graph
controller.
accept
public boolean accept(java.awt.event.MouseEvent event)
- Test whether the given MouseEvent passes the filter.
- Overrides:
accept
in class ExtendedMouseFilter