public class TracksManagerPlugin2D extends JIPipeImageViewerPlugin2D
Modifier and Type | Class and Description |
---|---|
static class |
TracksManagerPlugin2D.SelectionContextPanel |
static class |
TracksManagerPlugin2D.SelectionInfoContextPanel |
Constructor and Description |
---|
TracksManagerPlugin2D(JIPipeImageViewer viewerPanel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionContextPanel(TracksManagerPlugin2D.SelectionContextPanel panel) |
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
|
TrackCollectionData |
getSelectedTracksOrAll(String title,
String message) |
List<TracksManagerPlugin2D.SelectionContextPanel> |
getSelectionContextPanels() |
TrackDrawer |
getTrackDrawer() |
TrackCollectionData |
getTracksCollection() |
JList<Integer> |
getTracksListControl() |
void |
initializeSettingsPanel(FormPanel formPanel)
Called when the form panel should be recreated
|
void |
onOverlayAdded(Object overlay)
Called if an overlay was added
|
void |
onOverlayRemoved(Object overlay)
Called if an overlay was removed
|
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 |
removeSelectedTracks(boolean deferUploadSlice) |
void |
removeSelectionContextPanel(TracksManagerPlugin2D.SelectionContextPanel panel) |
void |
setTrackCollection(TrackCollectionData tracksCollection) |
beforeDraw, draw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, uploadSliceToCanvas
getCurrentImage, getCurrentImagePlus, getDataSource, getViewerPanel, getWorkbench, onImageChanged, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public TracksManagerPlugin2D(JIPipeImageViewer viewerPanel)
public void initializeSettingsPanel(FormPanel formPanel)
JIPipeImageViewerPlugin
initializeSettingsPanel
in class JIPipeImageViewerPlugin
formPanel
- the form panelpublic TrackCollectionData getSelectedTracksOrAll(String title, String message)
public List<TracksManagerPlugin2D.SelectionContextPanel> getSelectionContextPanels()
public void addSelectionContextPanel(TracksManagerPlugin2D.SelectionContextPanel panel)
public void removeSelectionContextPanel(TracksManagerPlugin2D.SelectionContextPanel panel)
public TrackDrawer getTrackDrawer()
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeImageViewerPlugin2D
postprocessDraw
in class JIPipeImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic 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 setTrackCollection(TrackCollectionData tracksCollection)
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 removeSelectedTracks(boolean deferUploadSlice)
public TrackCollectionData getTracksCollection()
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.