Module ij

Class Recorder

    • Field Detail

      • record

        public static boolean record
        This variable is true if the recorder is running.
      • recordInMacros

        public static boolean recordInMacros
        Set this variable true to allow recording within IJ.run() calls.
    • Constructor Detail

      • Recorder

        public Recorder()
      • Recorder

        public Recorder​(boolean showFrame)
    • Method Detail

      • record

        public static void record​(String method)
      • setCommand

        public static void setCommand​(String command)
        Starts recording a command. Does nothing if the recorder is not open or the command being recorded has called IJ.run().
      • getCommand

        public static String getCommand()
        Returns the name of the command currently being recorded, or null.
      • fixPath

        public static String fixPath​(String path)
        Replaces '\' characters with '/'.
      • fixString

        public static String fixString​(String str)
        Replaces special characters in a String for creation of a quoted macro String. Does not add quotes.
      • record

        public static void record​(String method,
                                  String arg)
      • record

        public static void record​(String method,
                                  int a1)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2,
                                  String a3)
      • record

        public static void record​(String method,
                                  double a1,
                                  double a2)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2,
                                  int a3)
      • record

        public static void record​(String method,
                                  String a1,
                                  int a2)
      • record

        public static void record​(String method,
                                  String args,
                                  int a1,
                                  int a2)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2,
                                  int a3,
                                  int a4)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2,
                                  int a3,
                                  int a4,
                                  int a5)
      • record

        public static void record​(String method,
                                  int a1,
                                  int a2,
                                  int a3,
                                  int a4,
                                  double a5)
      • record

        public static void record​(String method,
                                  String path,
                                  String args,
                                  int a1,
                                  int a2,
                                  int a3,
                                  int a4,
                                  int a5)
      • recordString

        public static void recordString​(String str)
      • disableCommandRecording

        public static void disableCommandRecording()
      • recordCall

        public static void recordCall​(String call)
      • recordCall

        public static void recordCall​(String call,
                                      boolean recordCommand)
      • recordCall

        public static void recordCall​(String className,
                                      String call)
      • recordRoi

        public static void recordRoi​(Roi roi)
      • recordRoi

        public static void recordRoi​(Polygon p,
                                     int type)
      • recordScriptRoi

        public static void recordScriptRoi​(Polygon p,
                                           int type)
      • recordOption

        public static void recordOption​(String key,
                                        String value)
      • recordOpen

        public static void recordOpen​(String path)
      • recordPath

        public static void recordPath​(String key,
                                      String path)
      • recordOption

        public static void recordOption​(String key)
      • saveCommand

        public static void saveCommand()
        Writes the current command and options to the Recorder window.
      • getCommandOptions

        public static String getCommandOptions()
        Used by GenericDialog to determine if any options have been recorded.
      • resetCommandOptions

        public static void resetCommandOptions()
        Used by GenericDialog.notifyListeners() to clear the command options.
      • disablePathRecording

        public static void disablePathRecording()
        Temporarily disables path recording.
      • scriptMode

        public static boolean scriptMode()
      • getText

        public String getText()
      • getInstance

        public static Recorder getInstance()
      • setForegroundColor

        public static void setForegroundColor​(Color c)
      • setBackgroundColor

        public static void setBackgroundColor​(Color c)
      • setBlackBackground

        public static void setBlackBackground()