Package sc.fiji.snt

Class SeedManager

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SeedManager extends JPanel
Reusable JPanel that controls a SeedOverlay: visibility, LUT, confidence range, transparency, counters, CSV import/export/clear, plus an inline JTable for browsing and editing individual seeds. Used as the content of SNTUI's "Seeds" tab. Multiple instances can coexist on the same SeedOverlay; each registers its own listener and synchronizes via the overlay (the data model is the source of truth).

Caller must invoke dispose() when the panel is removed from its parent so the overlay and table-model listeners are unregistered.

Author:
Tiago Ferreira
See Also:
  • Constructor Details

    • SeedManager

      public SeedManager(SNTUI sntui)
      Creates a panel bound to the given SNT instance's SeedOverlay. Registers an overlay listener immediately; call dispose() to unregister.
  • Method Details

    • dispose

      public void dispose()
      Unregisters the overlay listener and the table-model listener, and closes the detached-table dialog if it's open. Idempotent.

      Must be called when this panel is removed from its parent: overlay.addListener(overlayListener) pins this panel to the overlay's lifetime, so skipping dispose() leaks the panel and its table model until SNT shuts down.