Class AutoTraceConfigDialog

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

public class AutoTraceConfigDialog extends JDialog
Non-modal dialog displaying AutoTraceConfig results in a JTable with checkboxes, allowing the user to cherry-pick which derived parameters to apply.

The dialog has two sections:

  1. Source Statistics Read-only summary of what was measured from the example paths (mean radius, intensity, contraction, etc.)
  2. Derived Parameters Each row shows a parameter name, its derived value, and a checkbox for inclusion when "Apply Selected" is clicked
Author:
Tiago Ferreira
See Also:
  • Constructor Details

    • AutoTraceConfigDialog

      public AutoTraceConfigDialog(Window owner, AutoTraceConfig config)
      Creates the dialog.
      Parameters:
      owner - parent window (may be null)
      config - the derived configuration to display
  • Method Details

    • setApplyCallback

      public void setApplyCallback(Consumer<AutoTraceConfig> callback)
      Sets the callback invoked when "Apply Selected" is clicked. The callback receives the same AutoTraceConfig: the caller should inspect isSelected(String) to decide which fields to apply.
      Parameters:
      callback - the apply action
    • isSelected

      public boolean isSelected(String key)
      Whether the row with the given parameter key is checked for application.
      Parameters:
      key - the parameter key (e.g. "backgroundThreshold")
      Returns:
      true if the user has the checkbox ticked