Class ScriptRecorder

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ScriptRecorder extends JDialog
A dialog for recording SNT operations as scripts in multiple programming languages (BeanShell, Groovy, Python). Allows users to replay recorded operations and export them as reusable scripts.
See Also:
  • Field Details

  • Constructor Details

    • ScriptRecorder

      public ScriptRecorder()
  • Method Details

    • recordCmd

      public void recordCmd(String str)
    • recordCmd

      public void recordCmd(String str, boolean suppressNextLine)
    • recordComment

      public void recordComment(String str)
    • reset

      public void reset()
    • isPaused

      public boolean isPaused()
      Returns whether recording is currently paused.
      Returns:
      true if recording is paused, false otherwise
    • setPaused

      public void setPaused(boolean paused)
      Sets the pause state of the recorder.
      Parameters:
      paused - true to pause recording, false to resume
    • setLanguage

      public void setLanguage(String nameOrExtension)
      Sets the recording language.
      Parameters:
      nameOrExtension - the recording language. Either ".bsh", ".groovy", or ".py".
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • setRecordingCall

      public static void setRecordingCall(AbstractButton button, String recordingString)
    • getRecordingCall

      public static String getRecordingCall(AbstractButton button)
    • main

      public static void main(String[] args)