public class BoxTool extends OverlayTool
Modifier and Type | Field and Description |
---|---|
protected OverlayBox |
box
Box currently being drawn.
|
icon, name, overlay, tip
Constructor and Description |
---|
BoxTool(OverlayTransform overlay)
Constructs a box overlay creation tool.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDown(DisplayEvent e,
int px,
int py,
float dx,
float dy,
int[] pos,
int mods)
Instructs this tool to respond to a mouse press.
|
void |
mouseDrag(DisplayEvent e,
int px,
int py,
float dx,
float dy,
int[] pos,
int mods)
Instructs this tool to respond to a mouse drag.
|
void |
mouseUp(DisplayEvent e,
int px,
int py,
float dx,
float dy,
int[] pos,
int mods)
Instructs this tool to respond to a mouse release.
|
deselectAll, getIcon, getName, getTip, getTransform, keyPressed, keyReleased, mouseMoved
protected OverlayBox box
public BoxTool(OverlayTransform overlay)
public void mouseDown(DisplayEvent e, int px, int py, float dx, float dy, int[] pos, int mods)
mouseDown
in class OverlayTool
e
- DisplayEvent corresponding to this mouse press.px
- X coordinate of mouse press in pixel coordinate system.py
- Y coordinate of mouse press in pixel coordinate system.dx
- X coordinate of mouse press in data coordinate system.dy
- Y coordinate of mouse press in data coordinate system.pos
- Dimensional position of mouse press.mods
- Modifiers of mouse press.public void mouseUp(DisplayEvent e, int px, int py, float dx, float dy, int[] pos, int mods)
mouseUp
in class OverlayTool
e
- DisplayEvent corresponding to this mouse release.px
- X coordinate of mouse release in pixel coordinate system.py
- Y coordinate of mouse release in pixel coordinate system.dx
- X coordinate of mouse release in data coordinate system.dy
- Y coordinate of mouse release in data coordinate system.pos
- Dimensional position of mouse release.mods
- Modifiers of mouse release.public void mouseDrag(DisplayEvent e, int px, int py, float dx, float dy, int[] pos, int mods)
mouseDrag
in class OverlayTool
e
- DisplayEvent corresponding to this mouse drag.px
- X coordinate of mouse drag in pixel coordinate system.py
- Y coordinate of mouse drag in pixel coordinate system.dx
- X coordinate of mouse drag in data coordinate system.dy
- Y coordinate of mouse drag in data coordinate system.pos
- Dimensional position of mouse drag.mods
- Modifiers of mouse drag.Copyright © 2015–2022 SciJava. All rights reserved.