public class PointerTool extends OverlayTool
| Modifier and Type | Field and Description |
|---|---|
protected float[][] |
bounds
Array of the bounds of the OverlayObjects at the current dimensional
position.
|
protected Vector |
grabbed
Vector of "grabbed" objects.
|
protected float |
grabX
Location where an object was first "grabbed" with a mouse press.
|
protected float |
grabY
Location where an object was first "grabbed" with a mouse press.
|
protected OverlayObject[] |
objs
Array of OverlayObjects at current dimensional position.
|
protected TransientSelectBox |
select
The selection box which may be created by this tool.
|
protected boolean[] |
selected
Array of whether objects are selected at time of mouse press.
|
icon, name, overlay, tip| Constructor and Description |
|---|
PointerTool(OverlayTransform overlay)
Constructs an overlay manipulation 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, mouseMovedprotected float grabX
protected float grabY
protected Vector grabbed
protected TransientSelectBox select
protected OverlayObject[] objs
protected float[][] bounds
protected boolean[] selected
public PointerTool(OverlayTransform overlay)
public void mouseDown(DisplayEvent e, int px, int py, float dx, float dy, int[] pos, int mods)
mouseDown in class OverlayToole - 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 OverlayToole - 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 OverlayToole - 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.