public abstract class ImageViewerPanelPlugin extends Object implements JIPipeWorkbenchAccess
Constructor and Description |
---|
ImageViewerPanelPlugin(ImageViewerPanel viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
beforeDraw(int c,
int z,
int t)
Called before draw is called
|
void |
createPalettePanel(FormPanel formPanel)
Called when the form panel should be recreated
|
ij.process.ImageProcessor |
draw(int c,
int z,
int t,
ij.process.ImageProcessor processor)
Draws the image in the processor
|
abstract String |
getCategory()
The tool panel category where this tool is shown
|
abstract Icon |
getCategoryIcon()
The icon for the category if a new one must be created
|
ij.ImagePlus |
getCurrentImage() |
ij.process.ImageProcessor |
getCurrentSlice() |
ImageSliceIndex |
getCurrentSlicePosition() |
ImageViewerPanel |
getViewerPanel() |
JIPipeWorkbench |
getWorkbench() |
void |
onImageChanged()
Called when the current image is changed
|
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() |
public ImageViewerPanelPlugin(ImageViewerPanel viewerPanel)
public ImageViewerPanel getViewerPanel()
public void uploadSliceToCanvas()
public ImageSliceIndex getCurrentSlicePosition()
public ij.ImagePlus getCurrentImage()
public ij.process.ImageProcessor getCurrentSlice()
public JIPipeWorkbench getWorkbench()
getWorkbench
in interface JIPipeWorkbenchAccess
public void onImageChanged()
public void createPalettePanel(FormPanel formPanel)
formPanel
- the form panelpublic 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 magnificationpublic abstract String getCategory()
public abstract Icon getCategoryIcon()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.