Class SeedOverlayCanvasHandler

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

public final class SeedOverlayCanvasHandler extends Object
Attaches a lightweight MouseListener to a TracerCanvas that lets the user click on a rendered seed (with Alt held) to open the per-seed edit dialog. Read-only on the canvas otherwise: regular clicks / right-clicks pass through to the existing tracing-canvas handlers unchanged.

The hit-test uses the SeedOverlay's spatial index (SeedOverlay.nearest(double, double, double, double)). Tolerance is derived from the canvas magnification so it matches what the user sees on screen.

Author:
Tiago Ferreira
See Also:
  • Method Details

    • install

      public static void install(TracerCanvas canvas, SNT snt)
      Installs the Alt+Click → edit-nearest-seed listener on the given canvas. Safe to call once per canvas (no de-duplication; SNT installs each canvas exactly once during initialize).