Class SeedPointEditDialog

java.lang.Object
sc.fiji.snt.seed.SeedPointEditDialog

public class SeedPointEditDialog extends Object
Modal seed editor with two modes:
  • Single: One seed, all nine fields (X, Y, Z, confidence, radius, channel, frame, type, source) are shown and editable; Save rebuilds an immutable SeedPoint and applies it via SeedOverlay.replaceAt(int, SeedPoint); Delete removes the seed.
  • Bulk: Rwo or more seeds (or "all" when no selection): coordinate fields (X, Y, Z) are hidden. Remaining fields are pre-filled from the first seed but only those the user actually edits are applied to every seed in the batch (others are preserved per seed). Delete removes all seeds in the batch after a confirmation.

Entry points: editAt(Window, SeedOverlay, int) for single mode, editBulk(Window, SeedOverlay, List) for bulk mode. Both defensively re-resolve each seed by reference (via SeedOverlay.indexOf(SeedPoint)) before mutation, in case the list has shifted while the modal was open.

Author:
Tiago Ferreira
See Also:
  • Method Details

    • editAt

      public static void editAt(Window parent, SeedOverlay overlay, int index)
      Opens a single-seed edit dialog for the seed at the given model-row index of overlay. No-op if the index is out of range.
    • editBulk

      public static void editBulk(Window parent, SeedOverlay overlay, List<Integer> indices)
      Opens a bulk edit dialog for all seeds at the given indices. If indices.size() == 1, behaves like editAt(java.awt.Window, sc.fiji.snt.seed.SeedOverlay, int). No-op if no valid indices remain after bounds-checking.