Package sc.fiji.snt.seed
Class SeedPointEditDialog
java.lang.Object
sc.fiji.snt.seed.SeedPointEditDialog
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
SeedPointand applies it viaSeedOverlay.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(Component, SeedOverlay, int) for single mode,
editBulk(Component, 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 Summary
Modifier and TypeMethodDescriptionstatic voideditAt(Component parent, SeedOverlay overlay, int index) Opens a single-seed edit dialog for the seed at the given model-row index ofoverlay.static voideditBulk(Component parent, SeedOverlay overlay, List<Integer> indices) Opens a bulk edit dialog for all seeds at the given indices.
-
Method Details
-
editAt
Opens a single-seed edit dialog for the seed at the given model-row index ofoverlay. No-op if the index is out of range. -
editBulk
Opens a bulk edit dialog for all seeds at the given indices. Ifindices.size() == 1, behaves likeeditAt(java.awt.Component, sc.fiji.snt.seed.SeedOverlay, int). No-op if no valid indices remain after bounds-checking.
-