public abstract class JIPipeImageViewerPlugin2D extends JIPipeImageViewerPlugin
Constructor and Description |
---|
JIPipeImageViewerPlugin2D(JIPipeImageViewer 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() |
ImageViewerPanel2D |
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() |
getCategory, getCategoryIcon, getCurrentImage, getCurrentImagePlus, getDataSource, getViewerPanel, getWorkbench, initializeSettingsPanel, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public JIPipeImageViewerPlugin2D(JIPipeImageViewer viewerPanel)
public ImageViewerPanel2D 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–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.