com.dlsc.flexgantt.swing.timeline
Interface IEventlineMenuProvider
- All Known Implementing Classes:
- DefaultEventlineMenuProvider
public interface IEventlineMenuProvider
An eventline menu provider is a convenient way of adding a context sensitive
popup menu to the 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.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
Eventline.setMenuProvider(IEventlineMenuProvider)
Method Summary |
javax.swing.JPopupMenu |
getPopupMenu(Eventline eventline,
java.awt.event.MouseEvent e,
long timePoint,
java.lang.Object[] eventlineObjects)
Returns a popup menu for the given eventline. |
getPopupMenu
javax.swing.JPopupMenu getPopupMenu(Eventline eventline,
java.awt.event.MouseEvent e,
long timePoint,
java.lang.Object[] eventlineObjects)
- Returns a popup menu for the given eventline.
- Parameters:
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 location
- Returns:
- a popup menu that can be used in the context specified by the
given parameters
- Since:
- 1.0
- See Also:
Eventline.setMenuProvider(IEventlineMenuProvider)