Package sc.fiji.snt.gui
package sc.fiji.snt.gui
Customizations and commands for SNT's GUI.
- Author:
- Tiago Ferreira
-
ClassDescriptionDisplays dismissible "speech bubble" callouts anchored to a component, for building onboarding/first-run walkthroughs of a GUI.A custom GUI component combining a checkbox and spinner control in a single panel.A user-triggered collapsible panel.Interface for monitoring changes in
ColorChooserButton.Creates a JButton holding a color chooser.Generates a simplified color widget holding both predetermined colors and user-defined ones.This class allows you to move a Component by using a mouse.Non-editing commands shared by the contextual menus of the tracing canvas and of the Bdv/Bvv viewers: single source of truth for their labels and icons, so that both front-ends expose the same entries.The labels as compile-time constants, for front-ends that dispatch on them (e.g., in aswitch)SNT "Cost Function Wizard": runs A* with each of theSNT.CostTypevariants between two endpoints and displays all candidate paths as colored overlays on a single croppedImagePlus.Listener notified when the user picks (or cancels).Manages loading and running of demonstration datasets and reconstructions in SNT.Deprecated.Improvements to JFileChooser, namely:This class makes it easy to drag and drop files from the operating system to a Java program.Implement this inner interface to listen for when files are dropped.A FilePicker panel similar to Scijava's File widget but adopting SNT's FileChooser.Drives a short, click-through tutorial over a liveAbstractBigViewer(Bdv or Bvv, including Stream mode): flies the camera to a region of interest, shows aCalloutManagercallout describing what to do there, and only advances once a caller-supplied check confirms the user did it.One step of aGuidedTutorial.Misc. utilities for SNT's GUI.Utility methods for creating and stylingJButtons, including SNT's notification and options buttons.AJButtonthat shows an attachedJPopupMenuof options when clicked.A two-row panel of small glyph buttons stacked one above the other.A button displayed below the description of the selected choice ofGuiUtils.getChoice(String, String, String[], String[], String, BiFunction, List)Semantic UI colors (error/warning/link/selection/disabled) and a shared color chooser.Utility methods for creating and readingJSpinners andJTextFields.Look-and-feel constants and methods for setting/restoring SNT's activeLookAndFeel.A process-wide, persistent queue of pending notices for a notification-center UI element.A notification message queued for a persistent notification-center UI element.Utility methods for creating and stylingJScrollPanes.Utility methods for creating and stylingJSplitPanes.Utility methods forJTableconfiguration and creation.Stateful helper that extracts aJScrollPanefrom its current parent into a free-floating, modelessJDialog, and re-attaches it on demand.Utility methods for wrapping, truncating, escaping, and lightly formatting plain/HTML text.Utility methods for expanding, collapsing, and scrollingJTrees.Stateful "visiting zoom" helper used by widgets that navigate the canvas with "GoTo"-type of actions The default zoom is roughly two zoom steps above the current canvas magnification, falling back to 600% when no image is loaded.AJMenuItemwhose icon reacts to clicks independently of the item's main action.A factory forFADerivedIcons presets.An interactive prompt forSNTUI's "Materialize Region" command (Stream mode only): lets the user define the crop's size, center, and padding, with a live dimension/RAM estimate, then resolves the whole configuration into oneBoundingBoxforSNT.materializeDisplayCanvas(BoundingBox).The MeasureUI class is a graphical user interface for measuring and analyzingTrees.Node-editing commands of 'Edit Mode': single source of truth for their labels, default shortcuts and enabled-state logic, so that every front-end (classic canvas, Bdv, Bvv) exposes the same menu and key bindings.The editor state that determines which commands are enabledA reusable panel that presents one or more hierarchical ontologies as searchable checkbox trees.Default cell renderer for Allen CCF ontology trees.Per-palette delegate that builds the "More ยป" pop-up menu and supplies supporting operations (LUT, MIP overlay, snapshot, etc.) shared by SNT's preview-wizard windows (SigmaPalette, andCostPalette).Implements the customized SearchableBar used byPathManagerUI, including GUI commands for selection and morphological filtering of Paths.Utility class for discovery of SNT scriptsA dialog for recording SNT operations as scripts in multiple programming languages (BeanShell, Groovy, Python).An enhanced text field for search operations with built-in options for case-sensitive, word-matching, and regex search modes.Implements SNT 'Sigma wizard'.Listener interface for the sigma (gaussian blur standard deviation) palette.Implements SNT's Command Palette.Implements minor customizations toEditorPanefor usage by SNT.SNT's interpreter UI pane.SNT's REPL window.Syntax-highlighted prompt pane for the SNT scripting REPL.SNT's Groovy REPL.Implements a SearchableBar following SNT's UI.Implements a dialog for exporting SWC files.Implements a dialog for importing SWC files.A row of labeled numeric fields, e.g.