Package sc.fiji.snt.gui
Class DemoRunner
java.lang.Object
sc.fiji.snt.gui.DemoRunner
Manages loading and running of demonstration datasets and reconstructions in SNT.
Provides a collection of predefined demo entries with associated images, reconstructions,
and metadata for educational and testing purposes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload(int demoID) voidLoads theDemoRunner.Demomatchingrecorded: either its exact display label (seeDemoRunner.Demo.toString()), or a bare/legacy id (for scripts or macros recorded before the id moved out of the label, intoDemoRunner.Demo.description()).
-
Constructor Details
-
DemoRunner
-
DemoRunner
public DemoRunner(org.scijava.Context context)
-
-
Method Details
-
getChoice
-
load
public void load(int demoID) -
load
Loads theDemoRunner.Demomatchingrecorded: either its exact display label (seeDemoRunner.Demo.toString()), or a bare/legacy id (for scripts or macros recorded before the id moved out of the label, intoDemoRunner.Demo.description()). Tries the exact label first, so an unrelated digit elsewhere in a label (e.g. "3D" in a demo's name) is never mistaken for an id.- Parameters:
recorded- the recorded/typed argument, e.g."Guided Tracing (Interactive)", or a bare id such as"15"- Throws:
IllegalArgumentException- ifrecordedmatches neither a label nor a valid id
-