public class SpotsManagerPlugin extends ImageViewerPanelPlugin
Modifier and Type | Class and Description |
---|---|
static class |
SpotsManagerPlugin.SelectionContextPanel |
static class |
SpotsManagerPlugin.SelectionInfoContextPanel |
Constructor and Description |
---|
SpotsManagerPlugin(ImageViewerPanel viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionContextPanel(SpotsManagerPlugin.SelectionContextPanel panel) |
void |
createPalettePanel(FormPanel formPanel)
Called when the form panel should be recreated
|
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
|
SpotsCollectionData |
getSelectedSpotsOrAll(String title,
String message) |
List<SpotsManagerPlugin.SelectionContextPanel> |
getSelectionContextPanels() |
SpotDrawer |
getSpotDrawer() |
SpotsCollectionData |
getSpotsCollection() |
JList<Spot> |
getSpotsListControl() |
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 |
removeSelectedSpots(boolean deferUploadSlice) |
void |
removeSelectionContextPanel(SpotsManagerPlugin.SelectionContextPanel panel) |
void |
setSpotCollection(SpotsCollectionData spots,
boolean deferUploadSlice) |
beforeDraw, draw, getCurrentImage, getCurrentSlice, getCurrentSlicePosition, getViewerPanel, getWorkbench, onImageChanged, uploadSliceToCanvas
public SpotsManagerPlugin(ImageViewerPanel viewerPanel)
public SpotsCollectionData getSelectedSpotsOrAll(String title, String message)
public List<SpotsManagerPlugin.SelectionContextPanel> getSelectionContextPanels()
public void addSelectionContextPanel(SpotsManagerPlugin.SelectionContextPanel panel)
public void removeSelectionContextPanel(SpotsManagerPlugin.SelectionContextPanel panel)
public SpotDrawer getSpotDrawer()
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelPlugin
postprocessDraw
in class ImageViewerPanelPlugin
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic 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 createPalettePanel(FormPanel formPanel)
ImageViewerPanelPlugin
createPalettePanel
in class ImageViewerPanelPlugin
formPanel
- the form panelpublic void setSpotCollection(SpotsCollectionData spots, boolean deferUploadSlice)
public void removeSelectedSpots(boolean deferUploadSlice)
public SpotsCollectionData getSpotsCollection()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.