public class WheelScaleInteractor extends WheelTransformInteractor
Details: This transform interactor scales the figure's view when the mouse wheel is rotated.
Constructor and Description |
---|
WheelScaleInteractor(boolean iArmedWhenPressed,
boolean iWheelReversed)
Configures scaling behavior.
|
Modifier and Type | Method and Description |
---|---|
protected void |
wheelTransform(FigMouseEvent iEvent,
int iTicks)
See supermethod.
|
mouseButtonPressed, mouseButtonReleased, mouseWheelRotated
public WheelScaleInteractor(boolean iArmedWhenPressed, boolean iWheelReversed)
Details:
See the superconstructor for general information about the parameters.
Normal operation is to zoom in when the mouse wheel is rolled towards the user.
This behavior is accomplished by setting iWheelReversed
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.