public class MaskDrawerPlugin2D extends JIPipeDesktopLegacyImageViewerPlugin2D implements ImageViewerPanelCanvas2D.ToolChangedEventListener
Modifier and Type | Class and Description |
---|---|
static class |
MaskDrawerPlugin2D.MaskChangedEvent |
static class |
MaskDrawerPlugin2D.MaskChangedEventEmitter |
static interface |
MaskDrawerPlugin2D.MaskChangedEventListener |
static class |
MaskDrawerPlugin2D.MaskColor |
Modifier and Type | Field and Description |
---|---|
static Stroke |
STROKE_GUIDE_LINE |
Constructor and Description |
---|
MaskDrawerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel) |
beforeDraw, draw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, uploadSliceToCanvas
buildCustomPanel, getCurrentImage, getCurrentImagePlus, getDataSource, getDesktopWorkbench, getViewerPanel, getWorkbench, isActive, isBuildingCustomPanel, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
public static final Stroke STROKE_GUIDE_LINE
public MaskDrawerPlugin2D(JIPipeDesktopLegacyImageViewer viewerPanel)
public void installTool(MaskDrawer2DTool tool)
public MaskDrawerPlugin2D.MaskChangedEventEmitter getMaskChangedEventEmitter()
public Color getHighlightColor()
public void setHighlightColor(Color highlightColor)
public void recalculateMaskPreview()
public void onImageChanged()
JIPipeDesktopLegacyImageViewerPlugin
onImageChanged
in class JIPipeDesktopLegacyImageViewerPlugin
public void onSliceChanged(boolean deferUploadSlice)
JIPipeDesktopLegacyImageViewerPlugin2D
onSliceChanged
in class JIPipeDesktopLegacyImageViewerPlugin2D
deferUploadSlice
- if true, uploading the slice to the canvas should be deferredpublic void buildPanel(JIPipeDesktopFormPanel formPanel)
buildPanel
in class JIPipeDesktopLegacyImageViewerPlugin
public ij.ImagePlus getMask()
public void setMask(ij.ImagePlus mask)
public ij.process.ImageProcessor getCurrentMaskSlice()
public void clearCurrentMask()
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeDesktopLegacyImageViewerPlugin2D
postprocessDraw
in class JIPipeDesktopLegacyImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic void postprocessDrawForExport(BufferedImage image, ImageSliceIndex sliceIndex, double magnification)
JIPipeDesktopLegacyImageViewerPlugin2D
postprocessDrawForExport
in class JIPipeDesktopLegacyImageViewerPlugin2D
image
- the imagesliceIndex
- the slicemagnification
- the magnificationpublic Icon getPanelIcon()
JIPipeDesktopLegacyImageViewerPlugin
getPanelIcon
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 JIPipeDesktopDockPanel.PanelLocation getPanelLocation()
getPanelLocation
in class JIPipeDesktopLegacyImageViewerPlugin
public String getPanelName()
JIPipeDesktopLegacyImageViewerPlugin
getPanelName
in class JIPipeDesktopLegacyImageViewerPlugin
public MaskDrawerPlugin2D.MaskColor getCurrentColor()
public void setCurrentColor(MaskDrawerPlugin2D.MaskColor currentColor)
public MaskDrawer2DTool getCurrentTool()
public Color getMaskColor()
public void setMaskColor(Color maskColor)
public Function<ij.ImagePlus,ij.ImagePlus> getMaskGenerator()
public void setMaskGenerator(Function<ij.ImagePlus,ij.ImagePlus> maskGenerator)
public void onImageViewerCanvasToolChanged(ImageViewerPanelCanvas2D.ToolChangedEvent event)
onImageViewerCanvasToolChanged
in interface ImageViewerPanelCanvas2D.ToolChangedEventListener
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.