public class TransformEventHandler2D extends Object implements TransformEventHandler
Constructor and Description |
---|
TransformEventHandler2D(TransformState transform) |
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.
|
public static final String DRAG_TRANSLATE
public static final String DRAG_ROTATE
public static final String ZOOM_NORMAL
public static final String SCROLL_TRANSLATE
public static final String SCROLL_ROTATE
public static final String ROTATE_LEFT
public static final String ROTATE_RIGHT
public static final String KEY_ZOOM_IN
public static final String KEY_ZOOM_OUT
public static final String ZOOM_FAST
public static final String SCROLL_TRANSLATE_FAST
public static final String SCROLL_ROTATE_FAST
public static final String ROTATE_LEFT_FAST
public static final String ROTATE_RIGHT_FAST
public static final String KEY_ZOOM_IN_FAST
public static final String KEY_ZOOM_OUT_FAST
public static final String ZOOM_SLOW
public static final String SCROLL_TRANSLATE_SLOW
public static final String SCROLL_ROTATE_SLOW
public static final String ROTATE_LEFT_SLOW
public static final String ROTATE_RIGHT_SLOW
public static final String KEY_ZOOM_IN_SLOW
public static final String KEY_ZOOM_OUT_SLOW
public static final String[] DRAG_TRANSLATE_KEYS
public static final String[] DRAG_ROTATE_KEYS
public static final String[] ZOOM_NORMAL_KEYS
public static final String[] SCROLL_TRANSLATE_KEYS
public static final String[] SCROLL_ROTATE_KEYS
public static final String[] ROTATE_LEFT_KEYS
public static final String[] ROTATE_RIGHT_KEYS
public static final String[] KEY_ZOOM_IN_KEYS
public static final String[] KEY_ZOOM_OUT_KEYS
public static final String[] ZOOM_FAST_KEYS
public static final String[] SCROLL_TRANSLATE_FAST_KEYS
public static final String[] SCROLL_ROTATE_FAST_KEYS
public static final String[] ROTATE_LEFT_FAST_KEYS
public static final String[] ROTATE_RIGHT_FAST_KEYS
public static final String[] KEY_ZOOM_IN_FAST_KEYS
public static final String[] KEY_ZOOM_OUT_FAST_KEYS
public static final String[] ZOOM_SLOW_KEYS
public static final String[] SCROLL_TRANSLATE_SLOW_KEYS
public static final String[] SCROLL_ROTATE_SLOW_KEYS
public static final String[] ROTATE_LEFT_SLOW_KEYS
public static final String[] ROTATE_RIGHT_SLOW_KEYS
public static final String[] KEY_ZOOM_IN_SLOW_KEYS
public static final String[] KEY_ZOOM_OUT_SLOW_KEYS
public TransformEventHandler2D(TransformState transform)
public void install(Behaviours behaviours)
TransformEventHandler
behaviours
contrainer.install
in interface TransformEventHandler
public void setCanvasSize(int width, int height, boolean updateTransform)
TransformEventHandler
setCanvasSize
in interface TransformEventHandler
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.