public class TransformEventHandler3D extends Object implements TransformEventHandler
Constructor and Description |
---|
TransformEventHandler3D(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 ZOOM_NORMAL
public static final String SELECT_AXIS_X
public static final String SELECT_AXIS_Y
public static final String SELECT_AXIS_Z
public static final String DRAG_ROTATE
public static final String SCROLL_Z
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 KEY_FORWARD_Z
public static final String KEY_BACKWARD_Z
public static final String DRAG_ROTATE_FAST
public static final String SCROLL_Z_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 KEY_FORWARD_Z_FAST
public static final String KEY_BACKWARD_Z_FAST
public static final String DRAG_ROTATE_SLOW
public static final String SCROLL_Z_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 KEY_FORWARD_Z_SLOW
public static final String KEY_BACKWARD_Z_SLOW
public static final String[] DRAG_TRANSLATE_KEYS
public static final String[] ZOOM_NORMAL_KEYS
public static final String[] SELECT_AXIS_X_KEYS
public static final String[] SELECT_AXIS_Y_KEYS
public static final String[] SELECT_AXIS_Z_KEYS
public static final String[] DRAG_ROTATE_KEYS
public static final String[] SCROLL_Z_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[] KEY_FORWARD_Z_KEYS
public static final String[] KEY_BACKWARD_Z_KEYS
public static final String[] DRAG_ROTATE_FAST_KEYS
public static final String[] SCROLL_Z_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[] KEY_FORWARD_Z_FAST_KEYS
public static final String[] KEY_BACKWARD_Z_FAST_KEYS
public static final String[] DRAG_ROTATE_SLOW_KEYS
public static final String[] SCROLL_Z_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 static final String[] KEY_FORWARD_Z_SLOW_KEYS
public static final String[] KEY_BACKWARD_Z_SLOW_KEYS
public TransformEventHandler3D(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.