public interface TransformEventHandler
TransformEventHandler
receives notifications about changes of the
canvas size (it may react for example by changing the scale of the
transformation accordingly).Modifier and Type | Method and Description |
---|---|
void |
install(Behaviours behaviours)
Install transformation behaviours into the specified
behaviours contrainer. |
void |
setCanvasSize(int width,
int height,
boolean updateTransform)
This is called, when the screen size of the canvas (the component
displaying the image and generating mouse events) changes.
|
void install(Behaviours behaviours)
behaviours
contrainer.void setCanvasSize(int width, int height, boolean updateTransform)
width
- the new canvas width.height
- the new canvas height.updateTransform
- whether the current source-to-screen transform should be
updated. This will be false
for the initial
update of a new TransformEventHandler
and
true
on subsequent calls.Copyright © 2015–2021 Fiji. All rights reserved.