public abstract class MaskDrawer2DTool extends JIPipeDesktopLegacyImageViewerPlugin2D implements ImageViewerPanelCanvas2DTool
MaskDrawerPlugin2D
Constructor and Description |
---|
MaskDrawer2DTool(MaskDrawerPlugin2D maskDrawerPlugin,
String name,
String description,
Icon icon) |
Modifier and Type | Method and Description |
---|---|
void |
buildDock(JIPipeDesktopDockPanel dockPanel) |
void |
buildRibbon(JIPipeDesktopRibbon ribbon) |
void |
buildStatusBar(JToolBar statusBar) |
String |
getDescription() |
Icon |
getIcon() |
MaskDrawerPlugin2D |
getMaskDrawerPlugin() |
String |
getName() |
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
|
String |
getToolName()
Name of the tool
|
void |
onHighlightColorChanged()
Triggered when the highlight color was changed
|
void |
postMaskChangedEvent()
Posts a mask changed event to the viewer' canvas event bus
|
boolean |
showGuides() |
boolean |
toolIsActive() |
beforeDraw, draw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, onSliceChanged, postprocessDraw, postprocessDrawForExport, uploadSliceToCanvas
buildCustomPanel, buildPanel, getCurrentImage, getCurrentImagePlus, getDataSource, getDesktopWorkbench, getViewerPanel, getWorkbench, isActive, isBuildingCustomPanel, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, getToolCursor, onToolActivate, onToolDeactivate, postprocessDraw, toolAllowLeftMouseDrag, toolIsActive
public MaskDrawer2DTool(MaskDrawerPlugin2D maskDrawerPlugin, String name, String description, Icon icon)
public MaskDrawerPlugin2D getMaskDrawerPlugin()
public String getName()
public boolean toolIsActive()
public String getToolName()
ImageViewerPanelCanvas2DTool
getToolName
in interface ImageViewerPanelCanvas2DTool
public String getDescription()
public Icon getIcon()
public boolean showGuides()
public void postMaskChangedEvent()
public void onHighlightColorChanged()
public void buildStatusBar(JToolBar statusBar)
buildStatusBar
in class JIPipeDesktopLegacyImageViewerPlugin
public void buildDock(JIPipeDesktopDockPanel dockPanel)
buildDock
in class JIPipeDesktopLegacyImageViewerPlugin
public void buildRibbon(JIPipeDesktopRibbon ribbon)
buildRibbon
in class JIPipeDesktopLegacyImageViewerPlugin
public Icon getPanelIcon()
JIPipeDesktopLegacyImageViewerPlugin
getPanelIcon
in class JIPipeDesktopLegacyImageViewerPlugin
public JIPipeDesktopDockPanel.PanelLocation getPanelLocation()
getPanelLocation
in class JIPipeDesktopLegacyImageViewerPlugin
public String getPanelName()
JIPipeDesktopLegacyImageViewerPlugin
getPanelName
in class JIPipeDesktopLegacyImageViewerPlugin
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.