public class ROIManagerPlugin2D extends JIPipeDesktopLegacyImageViewerPlugin2D
Constructor and Description |
---|
ROIManagerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionContextPanel(ROIManagerPlugin2DSelectionContextPanel panel) |
JComponent |
buildCustomPanel() |
void |
buildDock(JIPipeDesktopDockPanel dockPanel) |
void |
buildRibbon(JIPipeDesktopRibbon ribbon) |
void |
buildStatusBar(JToolBar statusBar) |
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(ROI2DListData rois) |
Icon |
getPanelIcon()
The icon for the category if a new one must be created
|
JIPipeDesktopDockPanel.PanelLocation |
getPanelLocation() |
String |
getPanelName()
The tool panel category where this tool is shown
|
RoiDrawer |
getRoiDrawer() |
JList<ij.gui.Roi> |
getRoiListControl() |
ROI2DListData |
getRois() |
ROI2DListData |
getSelectedROIOrAll(String title,
String message) |
List<ROIManagerPlugin2DSelectionContextPanel> |
getSelectionContextPanels() |
void |
importROIs(ROI2DListData rois,
boolean deferUploadSlice) |
void |
importROIsFromManager(boolean deferUploadSlice) |
boolean |
isActive() |
boolean |
isBuildingCustomPanel() |
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(ROI2DListData rois,
boolean deferUploadSlice) |
void |
setSelectedROI(Collection<ij.gui.Roi> select,
boolean force) |
void |
updateListModel() |
void |
updateListModel(boolean deferUploadSlice,
Collection<ij.gui.Roi> excludeFromFilter) |
beforeDraw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, uploadSliceToCanvas
buildPanel, getCurrentImage, getCurrentImagePlus, getDataSource, getDesktopWorkbench, getViewerPanel, getWorkbench
public ROIManagerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel)
public void onImageChanged()
JIPipeDesktopLegacyImageViewerPlugin
onImageChanged
in class JIPipeDesktopLegacyImageViewerPlugin
public void onOverlayAdded(Object overlay)
JIPipeDesktopLegacyImageViewerPlugin
onOverlayAdded
in class JIPipeDesktopLegacyImageViewerPlugin
overlay
- the overlaypublic void onOverlayRemoved(Object overlay)
JIPipeDesktopLegacyImageViewerPlugin
onOverlayRemoved
in class JIPipeDesktopLegacyImageViewerPlugin
overlay
- the overlaypublic void onOverlaysCleared()
JIPipeDesktopLegacyImageViewerPlugin
onOverlaysCleared
in class JIPipeDesktopLegacyImageViewerPlugin
public boolean isActive()
isActive
in class JIPipeDesktopLegacyImageViewerPlugin
public boolean isBuildingCustomPanel()
isBuildingCustomPanel
in class JIPipeDesktopLegacyImageViewerPlugin
public JComponent buildCustomPanel()
buildCustomPanel
in class JIPipeDesktopLegacyImageViewerPlugin
public ROI2DListData 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)
JIPipeDesktopLegacyImageViewerPlugin2D
draw
in class JIPipeDesktopLegacyImageViewerPlugin2D
c
- c positionz
- z positiont
- t positionprocessor
- the processorpublic void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeDesktopLegacyImageViewerPlugin2D
postprocessDraw
in class JIPipeDesktopLegacyImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic RoiDrawer getRoiDrawer()
public void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
JIPipeDesktopLegacyImageViewerPlugin2D
postprocessDrawForExport
in class JIPipeDesktopLegacyImageViewerPlugin2D
image
- the imagesliceIndex
- the slicemagnification
- the magnificationpublic void onSliceChanged(boolean deferUploadSlice)
JIPipeDesktopLegacyImageViewerPlugin2D
onSliceChanged
in class JIPipeDesktopLegacyImageViewerPlugin2D
deferUploadSlice
- if true, uploading the slice to the canvas should be deferredpublic String getPanelName()
JIPipeDesktopLegacyImageViewerPlugin
getPanelName
in class JIPipeDesktopLegacyImageViewerPlugin
public JIPipeDesktopDockPanel.PanelLocation getPanelLocation()
getPanelLocation
in class JIPipeDesktopLegacyImageViewerPlugin
public void buildRibbon(JIPipeDesktopRibbon ribbon)
buildRibbon
in class JIPipeDesktopLegacyImageViewerPlugin
public void buildDock(JIPipeDesktopDockPanel dockPanel)
buildDock
in class JIPipeDesktopLegacyImageViewerPlugin
public void buildStatusBar(JToolBar statusBar)
buildStatusBar
in class JIPipeDesktopLegacyImageViewerPlugin
public Icon getPanelIcon()
JIPipeDesktopLegacyImageViewerPlugin
getPanelIcon
in class JIPipeDesktopLegacyImageViewerPlugin
public void importROIs(ROI2DListData rois, boolean deferUploadSlice)
public void removeSelectedROIs(boolean deferUploadSlice)
public void clearROIs(boolean deferUploadSlice)
public ROI2DListData getRois()
public void setRois(ROI2DListData rois, boolean deferUploadSlice)
public void exportROIsToManager()
public void exportROIsToManager(ROI2DListData 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<ij.gui.Roi> excludeFromFilter)
public JList<ij.gui.Roi> getRoiListControl()
public void setSelectedROI(Collection<ij.gui.Roi> select, boolean force)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.