Class DemoRunner

java.lang.Object
sc.fiji.snt.gui.DemoRunner

public class DemoRunner extends Object
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.
  • Constructor Details

    • DemoRunner

      public DemoRunner(SNTUI ui, SNT snt)
    • DemoRunner

      public DemoRunner(org.scijava.Context context)
  • Method Details

    • getChoice

      public DemoRunner.Demo getChoice()
    • load

      public void load(int demoID)
    • load

      public void load(String recorded)
      Loads the DemoRunner.Demo matching recorded: either its exact display label (see DemoRunner.Demo.toString()), or a bare/legacy id (for scripts or macros recorded before the id moved out of the label, into DemoRunner.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 - if recorded matches neither a label nor a valid id