Package org.micromanager.ndviewer.api
Interface OverlayerPlugin
public interface OverlayerPlugin
Interface for a plugin to draw customized overlays on the image window.
Register it using the setOverlayPlugin method in
NDViewer-
Method Summary
Modifier and Type Method Description voiddrawOverlay(Overlay defaultOverlay, Point2D.Double displayImageSize, double downsampleFactor, Graphics g, HashMap<String,Integer> axes, double magnification, Point2D.Double viewOffset)Called whenever the overlay needs to be drawn.
-
Method Details
-
drawOverlay
void drawOverlay(Overlay defaultOverlay, Point2D.Double displayImageSize, double downsampleFactor, Graphics g, HashMap<String,Integer> axes, double magnification, Point2D.Double viewOffset) throws InterruptedExceptionCalled whenever the overlay needs to be drawn. Once it is ready, it should be passed to the viewer by callingNDViewer.setOverlay(Overlay)- Parameters:
defaultOverlay- The base overlay which should be added ontodisplayImageSize-downsampleFactor-g-axes-magnification-viewOffset-- Throws:
InterruptedException
-