Package sc.fiji.snt.gui
Class GuiUtils.MenuItems
java.lang.Object
sc.fiji.snt.gui.GuiUtils.MenuItems
- Enclosing class:
GuiUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic JMenuItemstatic JCheckBoxMenuItemcheckboxMenuItem(String label, boolean selected, ActionListener lstnr, KeyStroke keystroke) Creates a checkbox menu item with a right-aligned shortcut hint and no global accelerator binding.static JCheckBoxMenuItemcheckboxWithoutAccelerator(String text, boolean selected) static JComponentcolorTagMenu(boolean asPopup, Component parent, Consumer<Color> onColorChosen) static JMenucolorTagMenu(Component parent, Consumer<Color> onColorChosen) static JPopupMenucolorTagPopup(Component parent, Consumer<Color> onColorChosen) static LinkedHashMap<String, Color> static JMenuItemstatic voidcontrastOptions(JComponent menuOrPopupMenu, JComponent component, boolean includeSeparator) static JMenuItemstatic JMenuItemstatic JMenuItemstatic JCheckBoxMenuItemstatic intstatic JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemdistribution(Supplier<SNTTable> tableSupplier) static JMenuItemstatic JMenuItemstatic WindowgetParentWindow(JMenuItem menuItem) static JMenuhelpMenu(SNTCommandFinder cmdFinder) static JMenuItemitemWithoutAccelerator(String text) static JMenuItemstatic JMenuItemstatic JMenuItemmenuItem(String label, ActionListener lstnr, KeyStroke keystroke, char symbol, boolean solid, Color color) Creates a menu item with a right-aligned shortcut hint, an optional icon specified by a font symbol, and no global accelerator binding.static JMenuItemmenuItem(String label, ActionListener lstnr, KeyStroke keystroke, IconFactory.GLYPH glyph) Creates a menu item with a right-aligned shortcut hint, an optional icon, and no global accelerator binding.static JMenuItemopenHelpURL(String label, String URL) static JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemstatic JMenuItemshowHelpOnCountingSpines(Component parent, Runnable action) static JMenuItemstatic JMenuItem
-
Method Details
-
getParentWindow
-
distribution
-
summarize
-
save
-
combineCharts
-
persistenceAnalysis
-
brainAreaAnalysis
-
devResourceMain
-
devResourceJavaAPI
-
devResourcePythonAPI
-
convexHull
-
createDendrogram
-
createAnnotationGraph
-
measureOptions
-
measureQuick
-
renderQuick
-
debugMode
-
rootAngleAnalysis
-
saveTablesAndPlots
-
shollAnalysis
-
strahlerAnalysis
-
fromOpenImage
-
fromFileImage
-
defaultHeight
public static int defaultHeight() -
contrastOptions
public static void contrastOptions(JComponent menuOrPopupMenu, JComponent component, boolean includeSeparator) -
itemWithoutAccelerator
-
checkboxWithoutAccelerator
-
checkboxMenuItem
public static JCheckBoxMenuItem checkboxMenuItem(String label, boolean selected, ActionListener lstnr, KeyStroke keystroke) Creates a checkbox menu item with a right-aligned shortcut hint and no global accelerator binding.- Parameters:
label- the menu item textselected- the initial selection statelstnr- the action listenerkeystroke- the shortcut to display (ornullfor none)- Returns:
- the configured checkbox menu item
-
helpMenu
-
openURL
-
openHelpURL
-
showHelpOnCountingSpines
-
colorTagPresets
-
colorTagMenu
-
colorTagPopup
-
colorTagMenu
public static JComponent colorTagMenu(boolean asPopup, Component parent, Consumer<Color> onColorChosen)
-