Class SNTCommandFinder

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

public class SNTCommandFinder extends Object
Implements SNT's Command Palette. An older version of this code is used by Fiji's Script Editor. In the future, should move to a common library to avoid this kind of duplication.
  • Constructor Details

    • SNTCommandFinder

      public SNTCommandFinder(SNTUI sntui)
      Constructs a new SNTCommandFinder for the specified SNTUI instance.
      Parameters:
      sntui - the SNTUI instance to associate with this command finder
    • SNTCommandFinder

      public SNTCommandFinder(Viewer3D viewer3D)
      Constructs a new SNTCommandFinder for the specified Viewer3D instance.
      Parameters:
      viewer3D - the Viewer3D instance to associate with this command finder
  • Method Details

    • dispose

      public void dispose()
      Disposes of this command finder and its associated resources.
    • setRecorder

      public void setRecorder(ScriptRecorder recorder)
      Sets the script recorder for this command finder.
      Parameters:
      recorder - the ScriptRecorder instance to use for recording commands
    • runCommand

      public void runCommand(String actionIdentifier)
    • toggleVisibility

      public void toggleVisibility()
      Toggles the visibility of the command finder window.
    • attach

      public void attach(JDialog dialog)
    • getButton

      public JButton getButton(float scaleFactor)
    • getMenuItem

      public AbstractButton getMenuItem(boolean asButton)
    • register

      public void register(AbstractButton button, String... description)
    • register

      public void register(AbstractButton button, List<String> pathDescription)
    • register

      public void register(JPopupMenu menu, List<String> path)
    • getRegisteredComponent

      public AbstractButton getRegisteredComponent(String label)
    • setVisible

      public void setVisible(boolean b)
    • getAcceleratorString

      public String getAcceleratorString()