Class ConfiguratorDialog

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

public class ConfiguratorDialog extends JDialog
The dialog displaying all the options configurable for the snapshot and the preview processes.
Author:
Zleurtor
See Also:
  • Constructor Details

    • ConfiguratorDialog

      public ConfiguratorDialog(Window window) throws IOException
      Constructs a new dialog having the specified window as owner.
      Parameters:
      window - The Window from which the dialog is displayed.
      Throws:
      IOException - If an Input/Output error occurs while reading an image.
  • Method Details

    • getColorsSamples

      public final List<File> getColorsSamples()
      Returns the list of files containing snapshots used as sample for color shift setting.
      Returns:
      The list of files containing snapshots used as sample for color shift setting.
    • setColorsSamples

      public void setColorsSamples(List<File> newColorsSamples)
      Sets a new list of files containing snapshots used as sample for color shift setting.
      Parameters:
      newColorsSamples - The new list of files containing snapshots used as sample for color shift setting.
    • getCloseOption

      public final ConfiguratorDialog.CloseOption getCloseOption()
      Returns the used close option (cancel, apply to selected or apply to all).
      Returns:
      The used close option.
    • getOptions

      public final String getOptions()
      Returns the options string (evaluated at the dialog closure).
      Returns:
      The options string.
    • getColorBalance

      public final int[] getColorBalance()
      Returns the color balance array.
      Returns:
      The color balance array.
    • parse

      public final void parse(String toParse)
      Parses the specified string and initializes the controls depending on the parsed values.
      Parameters:
      toParse - The options strings to parse.
    • setColorBalance

      public void setColorBalance(int[] colors)
      Actualize the values of the color balance sliders with given ones.
      Parameters:
      colors - The new color balance to set.
    • parseToReadableFormat

      public static final String parseToReadableFormat(String toParse)
      Parses the specified string and return it as a readable text.
      Parameters:
      toParse - The options strings to parse.
      Returns:
      The specified string as a readable text.