public interface ImageViewerPanelCanvasTool
ImageViewerPanelCanvas
Modifier and Type | Method and Description |
---|---|
default void |
addToggleButton(JToggleButton toggleButton,
ImageViewerPanelCanvas canvas)
Adds events to
JToggleButton that acts as control for the tool |
Cursor |
getToolCursor()
Cursor for the tool
|
String |
getToolName()
Name of the tool
|
void |
onToolActivate(ImageViewerPanelCanvas canvas)
Executed on activation of this tool
|
void |
onToolDeactivate(ImageViewerPanelCanvas canvas)
Executed on deactivation of this tool
|
default void |
postprocessDraw(Graphics2D graphics2D,
Rectangle renderArea,
ImageSliceIndex sliceIndex)
Called after the image has been drawn after the image has been drawn
|
default boolean |
toolAllowLeftMouseDrag()
Returns true if left mouse dragging should be allowed
|
default boolean |
toolIsActive(ImageViewerPanelCanvas canvas)
Returns true if the tool is active
|
Cursor getToolCursor()
void onToolActivate(ImageViewerPanelCanvas canvas)
canvas
- the canvasvoid onToolDeactivate(ImageViewerPanelCanvas canvas)
canvas
- the canvasdefault boolean toolAllowLeftMouseDrag()
default boolean toolIsActive(ImageViewerPanelCanvas canvas)
canvas
- the canvasdefault void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the sliceString getToolName()
default void addToggleButton(JToggleButton toggleButton, ImageViewerPanelCanvas canvas)
JToggleButton
that acts as control for the tooltoggleButton
- the toggle buttonCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.