public interface ImageViewerPanelCanvas2DTool
ImageViewerPanelCanvas2D
Modifier and Type | Method and Description |
---|---|
default void |
addToggleButton(JToggleButton toggleButton,
ImageViewerPanelCanvas2D 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(ImageViewerPanelCanvas2D canvas)
Executed on activation of this tool
|
void |
onToolDeactivate(ImageViewerPanelCanvas2D 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(ImageViewerPanelCanvas2D canvas)
Returns true if the tool is active
|
Cursor getToolCursor()
void onToolActivate(ImageViewerPanelCanvas2D canvas)
canvas
- the canvasvoid onToolDeactivate(ImageViewerPanelCanvas2D canvas)
canvas
- the canvasdefault boolean toolAllowLeftMouseDrag()
default boolean toolIsActive(ImageViewerPanelCanvas2D 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, ImageViewerPanelCanvas2D canvas)
JToggleButton
that acts as control for the tooltoggleButton
- the toggle buttonCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.