public interface IDatelineMenuProvider
Dateline
. 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
and the time that matches that location.Dateline.setMenuProvider(IDatelineMenuProvider)
Modifier and Type | Method and Description |
---|---|
JPopupMenu |
getPopupMenu(Dateline eventline,
MouseEvent e,
boolean major,
long timePoint,
ITimeSpan span)
Returns a popup menu for the given eventline.
|
JPopupMenu getPopupMenu(Dateline eventline, MouseEvent e, boolean major, long timePoint, ITimeSpan span)
eventline
- the eventline that requests the popup menue
- the mouse event that triggered the popup menu requestmajor
- signals whether the mouse event was performed on a major or a
minor time spantimePoint
- the time point at the mouse locationspan
- the time span in which the click time point is locatedDateline.setMenuProvider(IDatelineMenuProvider)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.