public abstract class MaskDrawerTool extends ImageViewerPanelPlugin implements ImageViewerPanelCanvasTool
MaskDrawerPlugin
Constructor and Description |
---|
MaskDrawerTool(MaskDrawerPlugin 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() |
MaskDrawerPlugin |
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, createPalettePanel, draw, getCurrentImage, getCurrentSlice, getCurrentSlicePosition, getViewerPanel, getWorkbench, onImageChanged, onSliceChanged, postprocessDraw, postprocessDrawForExport, uploadSliceToCanvas
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, getToolCursor, onToolActivate, onToolDeactivate, postprocessDraw, toolAllowLeftMouseDrag, toolIsActive
public MaskDrawerTool(MaskDrawerPlugin maskDrawerPlugin, String name, String description, Icon icon)
public MaskDrawerPlugin getMaskDrawerPlugin()
public String getName()
public boolean toolIsActive()
public String getToolName()
ImageViewerPanelCanvasTool
getToolName
in interface ImageViewerPanelCanvasTool
public String getDescription()
public Icon getIcon()
public boolean showGuides()
public String getCategory()
ImageViewerPanelPlugin
getCategory
in class ImageViewerPanelPlugin
public Icon getCategoryIcon()
ImageViewerPanelPlugin
getCategoryIcon
in class ImageViewerPanelPlugin
public void postMaskChangedEvent()
public void onHighlightColorChanged()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.