public interface ILayerContainerMenuProvider
LayerContainer
. 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 location of the mouse event that triggered the
popup, the tree path to the row where the popup got requested and the timline
object paths (one path for each timeline object that is placed at the
location of the popup request / overlapping timeline objects).
If a spreadsheet is visible then that information will be passed.
LayerContainer.setMenuProvider(ILayerContainerMenuProvider)
Modifier and Type | Method and Description |
---|---|
JPopupMenu |
getPopupMenu(LayerContainer lc,
MouseEvent e,
ITimeSpan timeSpan,
TreePath treePath,
ISpreadsheet spreadsheet)
Returns a popup menu for the given layer container when the given
spreadsheet is currently active.
|
JPopupMenu |
getPopupMenu(LayerContainer lc,
MouseEvent e,
long timePoint,
TreePath treePath,
TimelineObjectPath[] paths,
IRelationship[] relationships)
Returns a popup menu for the given layer container.
|
JPopupMenu getPopupMenu(LayerContainer lc, MouseEvent e, long timePoint, TreePath treePath, TimelineObjectPath[] paths, IRelationship[] relationships)
lc
- the layer container that requests the popup menue
- the mouse event that triggered the popup menu requesttimePoint
- the time point at the mouse locationtreePath
- the tree path that points to the row where the request occuredpaths
- one timeline object path for each timeline object located at
the location of the popup request eventrelationships
- contains all relationships found at the location of the popup
requestLayerContainer.setMenuProvider(ILayerContainerMenuProvider)
JPopupMenu getPopupMenu(LayerContainer lc, MouseEvent e, ITimeSpan timeSpan, TreePath treePath, ISpreadsheet spreadsheet)
lc
- the layer container that requests the popup menue
- the mouse event that triggered the popup menu requesttimeSpan
- the time span of the spreadsheet cell at the mouse locationtreePath
- the tree path that points to the row where the request occuredspreadsheet
- the currently active spreadsheetLayerContainer.setMenuProvider(ILayerContainerMenuProvider)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.