public abstract class MaskDrawer2DTool extends JIPipeImageViewerPlugin2D implements ImageViewerPanelCanvas2DTool
MaskDrawerPlugin2D
Constructor and Description |
---|
MaskDrawer2DTool(MaskDrawerPlugin2D maskDrawerPlugin,
String name,
String description,
Icon icon) |
Modifier and Type | Method and Description |
---|---|
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
|
String |
getDescription() |
Icon |
getIcon() |
MaskDrawerPlugin2D |
getMaskDrawerPlugin() |
String |
getName() |
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
getCurrentImage, getCurrentImagePlus, getDataSource, getViewerPanel, getWorkbench, initializeSettingsPanel, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, getToolCursor, onToolActivate, onToolDeactivate, postprocessDraw, toolAllowLeftMouseDrag, toolIsActive
dispose
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 String getCategory()
JIPipeImageViewerPlugin
getCategory
in class JIPipeImageViewerPlugin
public Icon getCategoryIcon()
JIPipeImageViewerPlugin
getCategoryIcon
in class JIPipeImageViewerPlugin
public void postMaskChangedEvent()
public void onHighlightColorChanged()
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.