ur_rna.RNAstructureUI.drawing.runners

## Class RunnerTemplate

- java.lang.Object
- - ur_rna.RNAstructureUI.drawing.runners.RunnerTemplate

- Direct Known Subclasses:
    PlotRunner, StructureRunner

      public abstract class RunnerTemplate
      extends java.lang.Object

  A class that templates the way in which the RNAstructure Java drawing framework is run independently.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RunnerTemplate(java.lang.String libraryName)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addClosingListener(javax.swing.JDialog dialog)` Add a listener to the dialog spawned by this template that exits the application when the dialog is closed.
    `void` | `addClosingListener(javax.swing.JInternalFrame dialog)`
    `protected abstract java.lang.String` | `selectFile()` Select an image file.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RunnerTemplate

          public RunnerTemplate(java.lang.String libraryName)

      Constructor.
      Parameters:
        `libraryName` - The name of the native library connected to this template.

  - ### Method Detail

    - #### addClosingListener

          public void addClosingListener(javax.swing.JDialog dialog)

      Add a listener to the dialog spawned by this template that exits the application when the dialog is closed.
      Parameters:
        `dialog` - The dialog to close.

    - #### addClosingListener

          public void addClosingListener(javax.swing.JInternalFrame dialog)

    - #### selectFile

          protected abstract java.lang.String selectFile()

      Select an image file.
      Returns:
        The image file.