public class WheelRotateInteractor extends WheelTransformInteractor
Details: This transform interactor rotates the figure's view when the mouse wheel is rotated.
Constructor and Description |
---|
WheelRotateInteractor(boolean iArmedWhenPressed,
boolean iWheelReversed)
Configures rotation behavior.
|
Modifier and Type | Method and Description |
---|---|
protected void |
wheelTransform(FigMouseEvent iEvent,
int iTicks)
See supermethod.
|
mouseButtonPressed, mouseButtonReleased, mouseWheelRotated
public WheelRotateInteractor(boolean iArmedWhenPressed, boolean iWheelReversed)
Details:
See the superconstructor for general information about the parameters.
Normal operation is to rotate clockwise when the mouse wheel is rolled towards the user.
This behavior is accomplished by setting izWheelReversed
to true
.
To reverse this behavior, set iWheelReversed
to false
.
iArmedWhenPressed
- See superconstructor.iWheelReversed
- false for normal operationprotected void wheelTransform(FigMouseEvent iEvent, int iTicks)
wheelTransform
in class WheelTransformInteractor
iEvent
- original mouse eventiTicks
- amount of commanded transformationCopyright © 2013. All Rights Reserved.