public class ROIManagerPlugin2D extends JIPipeImageViewerPlugin2D
Constructor and Description |
---|
ROIManagerPlugin2D(JIPipeImageViewer viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionContextPanel(ROIManagerPlugin2DSelectionContextPanel panel) |
void |
clearROIs(boolean deferUploadSlice) |
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<ROIManagerPlugin2DSelectionContextPanel> |
getSelectionContextPanels() |
void |
importROIs(ROIListData rois,
boolean deferUploadSlice) |
void |
importROIsFromManager(boolean deferUploadSlice) |
void |
initializeSettingsPanel(FormPanel formPanel)
Called when the form panel should be recreated
|
boolean |
isFilterListHideInvisible() |
boolean |
isFilterListOnlySelected() |
void |
onImageChanged()
Called when the current image is changed
|
void |
onOverlayAdded(Object overlay)
Called if an overlay was added
|
void |
onOverlayRemoved(Object overlay)
Called if an overlay was removed
|
void |
onOverlaysCleared()
Called if the overlays were cleared
|
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(ROIManagerPlugin2DSelectionContextPanel 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, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, uploadSliceToCanvas
getCurrentImage, getCurrentImagePlus, getDataSource, getViewerPanel, getWorkbench
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public ROIManagerPlugin2D(JIPipeImageViewer viewerPanel)
public void onImageChanged()
JIPipeImageViewerPlugin
onImageChanged
in class JIPipeImageViewerPlugin
public void onOverlayAdded(Object overlay)
JIPipeImageViewerPlugin
onOverlayAdded
in class JIPipeImageViewerPlugin
overlay
- the overlaypublic void onOverlayRemoved(Object overlay)
JIPipeImageViewerPlugin
onOverlayRemoved
in class JIPipeImageViewerPlugin
overlay
- the overlaypublic void onOverlaysCleared()
JIPipeImageViewerPlugin
onOverlaysCleared
in class JIPipeImageViewerPlugin
public void initializeSettingsPanel(FormPanel formPanel)
JIPipeImageViewerPlugin
initializeSettingsPanel
in class JIPipeImageViewerPlugin
formPanel
- the form panelpublic ROIListData getSelectedROIOrAll(String title, String message)
public List<ROIManagerPlugin2DSelectionContextPanel> getSelectionContextPanels()
public void addSelectionContextPanel(ROIManagerPlugin2DSelectionContextPanel panel)
public void removeSelectionContextPanel(ROIManagerPlugin2DSelectionContextPanel panel)
public ij.process.ImageProcessor draw(int c, int z, int t, ij.process.ImageProcessor processor)
JIPipeImageViewerPlugin2D
draw
in class JIPipeImageViewerPlugin2D
c
- c positionz
- z positiont
- t positionprocessor
- the processorpublic void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeImageViewerPlugin2D
postprocessDraw
in class JIPipeImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic RoiDrawer getRoiDrawer()
public void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
JIPipeImageViewerPlugin2D
postprocessDrawForExport
in class JIPipeImageViewerPlugin2D
image
- the imagesliceIndex
- the slicemagnification
- the magnificationpublic void onSliceChanged(boolean deferUploadSlice)
JIPipeImageViewerPlugin2D
onSliceChanged
in class JIPipeImageViewerPlugin2D
deferUploadSlice
- if true, uploading the slice to the canvas should be deferredpublic String getCategory()
JIPipeImageViewerPlugin
getCategory
in class JIPipeImageViewerPlugin
public Icon getCategoryIcon()
JIPipeImageViewerPlugin
getCategoryIcon
in class JIPipeImageViewerPlugin
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–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.