-
- All Known Implementing Classes:
BdvOverlay,BufferedImageOverlayRenderer,DebugTilingOverlay,PointsOverlay,RecordMaxProjectionDialog,RecordMovieDialog,TransformedBoxOverlay,ViewerPanel
public interface OverlayRendererDraw something to aGraphicscanvas and receive notifications about changes of the canvas size.- Author:
- Tobias Pietzsch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddrawOverlays(Graphics g)Render overlays.default voidsetCanvasSize(int width, int height)This is called, when the screen size of the canvas (the component displaying the image and generating mouse events) changes.
-
-
-
Method Detail
-
drawOverlays
void drawOverlays(Graphics g)
Render overlays.
-
setCanvasSize
default void setCanvasSize(int width, int height)This is called, when the screen size of the canvas (the component displaying the image and generating mouse events) changes. This can be used to determine scale of overlay or screen coordinates relative to the border.- Parameters:
width- the new canvas width.height- the new canvas height.
-
-