Class StandardOverlayMenuItem
java.lang.Object
dataPlotsFX.overlaymark.menuOptions.StandardOverlayMenuItem
- All Implemented Interfaces:
 OverlayMenuItem
Converts a MenuItem to an OverlayMenuItem. 
 
 This is typically used for MenuItems which have been previously defined in overlay 
 markers etc.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from interface dataPlotsFX.overlaymark.menuOptions.OverlayMenuItem
buttonWidthStandard, DATAINFO, EXPORT_GROUP, NO_GROUP - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeUsed(DetectionGroupSummary foundDataUnits, int index, OverlayMark overlayMark) Check whether the menu item can be used within a group of data units.intgetFlag()Flags for general grouping menu itemsjavafx.scene.control.TooltipintIndicates whether menu items should be grouped together in a sub menu.javafx.scene.control.ControlmenuAction(DetectionGroupSummary foundDataUnits, int index, OverlayMark overlayMark) Returns a control which performs an action when pressed (or action occurs) 
- 
Method Details
- 
getNodeToolTip
public javafx.scene.control.Tooltip getNodeToolTip()- Specified by:
 getNodeToolTipin interfaceOverlayMenuItem
 - 
canBeUsed
Description copied from interface:OverlayMenuItemCheck whether the menu item can be used within a group of data units.- Specified by:
 canBeUsedin interfaceOverlayMenuItem- Parameters:
 foundDataUnits- - class which holds a list of data units and metadata info.index- :. If the index is invalid input: '<'0 then returns whether the menu item can be used for at least one of the units in the list.overlayMark- - holds info on the current mark drawn on the display.
 - 
getFlag
public int getFlag()Description copied from interface:OverlayMenuItemFlags for general grouping menu items- Specified by:
 getFlagin interfaceOverlayMenuItem- Returns:
 - integer flag which groups items
 
 - 
getSubMenuGroup
public int getSubMenuGroup()Description copied from interface:OverlayMenuItemIndicates whether menu items should be grouped together in a sub menu. Make the same group and same flag if so.- Specified by:
 getSubMenuGroupin interfaceOverlayMenuItem- Returns:
 - the group number. -1 for no grouping.
 
 
 -