Class GhidraScreenShotGenerator


public abstract class GhidraScreenShotGenerator extends AbstractScreenShotGenerator
Extend this class to create screen shot images for help. The name of the class determines the topic directory where the captured image will be stored. So if the class name is XyzShreenShots, the resulting captured image will appear in help topic directly "Xyz", regardless of which module has that topic. The test name will determine the name of the image file that is generated. So if the test name is testHappyBirthday, the filename will be HappyBirthday.png.
  • Constructor Details Link icon

    • GhidraScreenShotGenerator Link icon

      protected GhidraScreenShotGenerator()
  • Method Details Link icon

    • tearDown Link icon

      public void tearDown() throws Exception
      Overrides:
      tearDown in class AbstractScreenShotGenerator
      Throws:
      Exception
    • showResults Link icon

      protected void showResults()
    • saveOrDisplayImage Link icon

      public void saveOrDisplayImage()
      Generally, you shouldn't use this. This is only visible for those who do not directly extend this class.
    • saveOrDisplayImage Link icon

      public void saveOrDisplayImage(String name)
    • handleGIFImage Link icon

      protected void handleGIFImage(File gifFile)
    • getHelpTopic Link icon

      protected File getHelpTopic()
    • loadDefaultTool Link icon

      public void loadDefaultTool()
    • getHelpTopicName Link icon

      protected String getHelpTopicName()
    • finished Link icon

      public void finished(File helpTopic, String oldImageName)
      Call when you are finished generating a new image. This method will either show the newly created image or write it to disk, depending upon the value of AbstractScreenShotGenerator.SAVE_CREATED_IMAGE_FILE, which is a system property.
      Parameters:
      helpTopic - The help topic that contains the image
      oldImageName - The name of the image
    • getOldImage Link icon

      protected Image getOldImage(File helpTopicDir, String imageName)
    • showImage Link icon

      @Deprecated public void showImage(String helpTopic, String oldImageName)
      Deprecated.
      Parameters:
      helpTopic - The help topic that contains the image
      oldImageName - The name of the image
    • saveToHelp Link icon

      @Deprecated public void saveToHelp(String helpTopic, String imageName)
      Deprecated.
      Parameters:
      helpTopic - The help topic that contains the image
      imageName - The name of the image
    • reallySaveToHelp Link icon

      protected void reallySaveToHelp(File helpTopicDir, String imageName)
    • getHelpTopicDir Link icon

      protected File getHelpTopicDir(String helpTopic)
    • getHelpTopicDirs Link icon

      protected List<File> getHelpTopicDirs()
    • getFrontEndTool Link icon

      protected FrontEndTool getFrontEndTool()
    • performFrontEndAction Link icon

      public void performFrontEndAction(String actionName, String owner, boolean wait)