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, uploadSliceToCanvaspublic ROIManagerPlugin(ImageViewerPanel viewerPanel)
public void onImageChanged()
ImageViewerPanelPluginonImageChanged in class ImageViewerPanelPluginpublic void createPalettePanel(FormPanel formPanel)
ImageViewerPanelPlugincreatePalettePanel in class ImageViewerPanelPluginformPanel - 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)
ImageViewerPanelPlugindraw in class ImageViewerPanelPluginc - c positionz - z positiont - t positionprocessor - the processorpublic void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelPluginpostprocessDraw in class ImageViewerPanelPlugingraphics2D - the graphicsrenderArea - the render areasliceIndex - the index of the slicepublic RoiDrawer getRoiDrawer()
public void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
ImageViewerPanelPluginpostprocessDrawForExport in class ImageViewerPanelPluginimage - the imagesliceIndex - the slicemagnification - the magnificationpublic void onSliceChanged(boolean deferUploadSlice)
ImageViewerPanelPluginonSliceChanged in class ImageViewerPanelPlugindeferUploadSlice - if true, uploading the slice to the canvas should be deferredpublic String getCategory()
ImageViewerPanelPlugingetCategory in class ImageViewerPanelPluginpublic Icon getCategoryIcon()
ImageViewerPanelPlugingetCategoryIcon in class ImageViewerPanelPluginpublic 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–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.