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
  Version:
    $Revision: 1.5 $
  Author:
    Dirk Lemmermann
  See Also:
    `Eventline.setMenuProvider(IEventlineMenuProvider)`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `JPopupMenu` | `getPopupMenu(Eventline eventline, MouseEvent e, long timePoint, Object[] eventlineObjects)` Returns a popup menu for the given eventline.

- - ### Method Detail

    - #### getPopupMenu

          JPopupMenu getPopupMenu(Eventline eventline,
                                  MouseEvent e,
                                  long timePoint,
                                  Object[] eventlineObjects)

      Returns a popup menu for the given eventline.
      Parameters:
        `eventline` - the eventline that requests the popup menu
        `e` - the mouse event that triggered the popup menu request
        `timePoint` - the time point at the mouse location
        `eventlineObjects` - 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)`

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.