public class ROIManagerPlugin extends ImageViewerPanelPlugin
Constructor and Description |
---|
ROIManagerPlugin(ImageViewerPanel viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionContextPanel(ROIManagerPluginSelectionContextPanel panel) |
void |
clearROIs(boolean deferUploadSlice) |
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
|
void |
exportROIsToManager() |
void |
exportROIsToManager(ROIListData rois) |
String |
getCategory()
The tool panel category where this tool is shown
|
Icon |
getCategoryIcon()
The icon for the category if a new one must be created
|
RoiDrawer |
getRoiDrawer() |
JList<Roi> |
getRoiListControl() |
ROIListData |
getRois() |
ROIListData |
getSelectedROIOrAll(String title,
String message) |
List<ROIManagerPluginSelectionContextPanel> |
getSelectionContextPanels() |
void |
importROIs(ROIListData rois,
boolean deferUploadSlice) |
void |
importROIsFromManager(boolean deferUploadSlice) |
boolean |
isFilterListHideInvisible() |
boolean |
isFilterListOnlySelected() |
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 |
removeSelectedROIs(boolean deferUploadSlice) |
void |
removeSelectionContextPanel(ROIManagerPluginSelectionContextPanel panel) |
void |
setFilterListHideInvisible(boolean filterListHideInvisible) |
void |
setFilterListOnlySelected(boolean filterListOnlySelected) |
void |
setRois(ROIListData rois,
boolean deferUploadSlice) |
void |
setSelectedROI(Collection<Roi> select,
boolean force) |
void |
updateListModel() |
void |
updateListModel(boolean deferUploadSlice,
Collection<Roi> excludeFromFilter) |
beforeDraw, getCurrentImage, getCurrentSlice, getCurrentSlicePosition, getViewerPanel, getWorkbench, uploadSliceToCanvas
public ROIManagerPlugin(ImageViewerPanel viewerPanel)
public void onImageChanged()
ImageViewerPanelPlugin
onImageChanged
in class ImageViewerPanelPlugin
public void createPalettePanel(FormPanel formPanel)
ImageViewerPanelPlugin
createPalettePanel
in class ImageViewerPanelPlugin
formPanel
- the form panelpublic ROIListData getSelectedROIOrAll(String title, String message)
public List<ROIManagerPluginSelectionContextPanel> getSelectionContextPanels()
public void addSelectionContextPanel(ROIManagerPluginSelectionContextPanel panel)
public void removeSelectionContextPanel(ROIManagerPluginSelectionContextPanel panel)
public ij.process.ImageProcessor draw(int c, int z, int t, ij.process.ImageProcessor processor)
ImageViewerPanelPlugin
draw
in class ImageViewerPanelPlugin
c
- c positionz
- z positiont
- t positionprocessor
- the processorpublic void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelPlugin
postprocessDraw
in class ImageViewerPanelPlugin
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic RoiDrawer getRoiDrawer()
public void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
ImageViewerPanelPlugin
postprocessDrawForExport
in class ImageViewerPanelPlugin
image
- the imagesliceIndex
- the slicemagnification
- the magnificationpublic void onSliceChanged(boolean deferUploadSlice)
ImageViewerPanelPlugin
onSliceChanged
in class ImageViewerPanelPlugin
deferUploadSlice
- if true, uploading the slice to the canvas should be deferredpublic String getCategory()
ImageViewerPanelPlugin
getCategory
in class ImageViewerPanelPlugin
public Icon getCategoryIcon()
ImageViewerPanelPlugin
getCategoryIcon
in class ImageViewerPanelPlugin
public void importROIs(ROIListData rois, boolean deferUploadSlice)
public void removeSelectedROIs(boolean deferUploadSlice)
public void clearROIs(boolean deferUploadSlice)
public ROIListData getRois()
public void setRois(ROIListData rois, boolean deferUploadSlice)
public void exportROIsToManager()
public void exportROIsToManager(ROIListData rois)
public void importROIsFromManager(boolean deferUploadSlice)
public boolean isFilterListHideInvisible()
public void setFilterListHideInvisible(boolean filterListHideInvisible)
public boolean isFilterListOnlySelected()
public void setFilterListOnlySelected(boolean filterListOnlySelected)
public void updateListModel()
public void updateListModel(boolean deferUploadSlice, Collection<Roi> excludeFromFilter)
public void setSelectedROI(Collection<Roi> select, boolean force)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.