Package sc.fiji.snt.seed
Class SeedOverlayCanvasHandler
java.lang.Object
sc.fiji.snt.seed.SeedOverlayCanvasHandler
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 Summary
Modifier and TypeMethodDescriptionstatic voidinstall(TracerCanvas canvas, SNT snt) Installs the Alt+Click → edit-nearest-seed listener on the given canvas.
-
Method Details
-
install
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 duringinitialize).
-