public interface Pannable
ImageCanvas.
The pan position is the center of the viewport. The assumption is that the user cares most about what's in the center of the viewport, especially for operations like a pure zoom.
ImageCanvas| Modifier and Type | Method and Description |
|---|---|
RealCoords |
getPanCenter()
Gets the coordinates of the data space point currently displayed
in the center of the viewport.
|
IntCoords |
getPanOffset()
Gets the absolute offset of the viewport in pixels from the top left.
|
void |
pan(IntCoords delta)
Adjusts the pan by the given (X, Y) amount in panel space.
|
void |
pan(RealCoords delta)
Adjusts the pan by the given (X, Y) amount.
|
void |
panReset()
Resets the pan origin to the center of the display.
|
void |
setPanCenter(IntCoords center)
Pans to the given absolute (X, Y) position in panel coordinate
space.
|
void |
setPanCenter(RealCoords center)
Pans to the given absolute (X, Y) position in data coordinate
space.
|
RealCoords getPanCenter()
IntCoords getPanOffset()
void setPanCenter(RealCoords center)
center - Absolute coordinates, in data coordinate space.void setPanCenter(IntCoords center)
center - Absolute coordinates, in panel coordinate space.void pan(RealCoords delta)
delta - Pan modifier, in data coordinate space.void pan(IntCoords delta)
delta - Pan modifier, in panel coordinate space.void panReset()
Copyright © 2014–2022 ImageJ. All rights reserved.