public abstract class JIPipeDesktopLegacyImageViewerPlugin2D extends JIPipeDesktopLegacyImageViewerPlugin
Constructor and Description |
---|
JIPipeDesktopLegacyImageViewerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
beforeDraw(int c,
int z,
int t)
Called before draw is called
|
ij.process.ImageProcessor |
draw(int c,
int z,
int t,
ij.process.ImageProcessor processor)
Draws the image in the processor
|
ij.process.ImageProcessor |
getCurrentSlice() |
ImageSliceIndex |
getCurrentSlicePosition() |
JIPipeDesktopLegacyImageViewerPanel2D |
getViewerPanel2D() |
void |
onSliceChanged(boolean deferUploadSlice)
Called when the current slice is changed
|
void |
postprocessDraw(Graphics2D graphics2D,
Rectangle renderArea,
ImageSliceIndex sliceIndex)
Called after the image has been drawn after the image has been drawn
|
void |
postprocessDrawForExport(BufferedImage image,
ImageSliceIndex sliceIndex,
double magnification)
Called while exporting the image slice.
|
void |
uploadSliceToCanvas() |
buildCustomPanel, buildDock, buildPanel, buildRibbon, buildStatusBar, getCurrentImage, getCurrentImagePlus, getDataSource, getDesktopWorkbench, getPanelIcon, getPanelLocation, getPanelName, getViewerPanel, getWorkbench, isActive, isBuildingCustomPanel, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
public JIPipeDesktopLegacyImageViewerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel)
public JIPipeDesktopLegacyImageViewerPanel2D getViewerPanel2D()
public void uploadSliceToCanvas()
public ImageSliceIndex getCurrentSlicePosition()
public ij.process.ImageProcessor getCurrentSlice()
public ij.process.ImageProcessor draw(int c, int z, int t, ij.process.ImageProcessor processor)
c
- c positionz
- z positiont
- t positionprocessor
- the processorpublic void onSliceChanged(boolean deferUploadSlice)
deferUploadSlice
- if true, uploading the slice to the canvas should be deferredpublic void beforeDraw(int c, int z, int t)
c
- c positionz
- z positiont
- t positionpublic void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
image
- the imagesliceIndex
- the slicemagnification
- the magnificationCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.