public interface IEventlineMenuProvider
Eventline
. When using this provider instead of
using JComponent.setComponentPopupMenu(JPopupMenu)
the information
that is usually required by the popup menu gets already delivered to the
provider. This information contains the mouse event that triggered the popup,
the time point and the eventline objects at the location of that event.Eventline.setMenuProvider(IEventlineMenuProvider)
Modifier and Type | Method and Description |
---|---|
JPopupMenu |
getPopupMenu(Eventline eventline,
MouseEvent e,
long timePoint,
Object[] eventlineObjects)
Returns a popup menu for the given eventline.
|
JPopupMenu getPopupMenu(Eventline eventline, MouseEvent e, long timePoint, Object[] eventlineObjects)
eventline
- the eventline that requests the popup menue
- the mouse event that triggered the popup menu requesttimePoint
- the time point at the mouse locationeventlineObjects
- the eventline objects that are located at the mouse locationEventline.setMenuProvider(IEventlineMenuProvider)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.