public class RectangleMaskDrawer2DTool extends MaskDrawer2DTool implements MouseClickedEventListener, MouseExitedEventListener, MouseMovedEventListener
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SETTING_FILL |
static boolean |
DEFAULT_SETTING_SQUARE |
static boolean |
DEFAULT_SETTING_START_FROM_CENTER |
Constructor and Description |
---|
RectangleMaskDrawer2DTool(MaskDrawerPlugin2D plugin) |
Modifier and Type | Method and Description |
---|---|
void |
buildPanel(JIPipeDesktopFormPanel formPanel) |
static Rectangle |
getDrawnArea(Point p0,
Point p1,
boolean startFromCenter,
boolean square) |
Cursor |
getToolCursor()
Cursor for the tool
|
void |
onComponentMouseClicked(MouseClickedEvent event) |
void |
onComponentMouseExited(MouseExitedEvent event) |
void |
onComponentMouseMoved(MouseMovedEvent event) |
void |
onToolActivate(ImageViewerPanelCanvas2D canvas)
Executed on activation of this tool
|
void |
onToolDeactivate(ImageViewerPanelCanvas2D canvas)
Executed on deactivation of this tool
|
void |
postprocessDraw(Graphics2D graphics2D,
Rectangle renderArea,
ImageSliceIndex sliceIndex)
Called after the image has been drawn after the image has been drawn
|
buildDock, buildRibbon, buildStatusBar, getDescription, getIcon, getMaskDrawerPlugin, getName, getPanelIcon, getPanelLocation, getPanelName, getToolName, onHighlightColorChanged, postMaskChangedEvent, showGuides, toolIsActive
beforeDraw, draw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, onSliceChanged, postprocessDrawForExport, uploadSliceToCanvas
buildCustomPanel, getCurrentImage, getCurrentImagePlus, getDataSource, getDesktopWorkbench, getViewerPanel, getWorkbench, isActive, isBuildingCustomPanel, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, toolAllowLeftMouseDrag, toolIsActive
public static boolean DEFAULT_SETTING_START_FROM_CENTER
public static boolean DEFAULT_SETTING_SQUARE
public static boolean DEFAULT_SETTING_FILL
public RectangleMaskDrawer2DTool(MaskDrawerPlugin2D plugin)
public static Rectangle getDrawnArea(Point p0, Point p1, boolean startFromCenter, boolean square)
public void buildPanel(JIPipeDesktopFormPanel formPanel)
buildPanel
in class JIPipeDesktopLegacyImageViewerPlugin
public Cursor getToolCursor()
ImageViewerPanelCanvas2DTool
getToolCursor
in interface ImageViewerPanelCanvas2DTool
public void onToolActivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
onToolActivate
in interface ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
onToolDeactivate
in interface ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onComponentMouseClicked(MouseClickedEvent event)
onComponentMouseClicked
in interface MouseClickedEventListener
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeDesktopLegacyImageViewerPlugin2D
postprocessDraw
in interface ImageViewerPanelCanvas2DTool
postprocessDraw
in class JIPipeDesktopLegacyImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic void onComponentMouseMoved(MouseMovedEvent event)
onComponentMouseMoved
in interface MouseMovedEventListener
public void onComponentMouseExited(MouseExitedEvent event)
onComponentMouseExited
in interface MouseExitedEventListener
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.