MouseZoom is a Java3D behavior object that lets users control the
Z axis translation of an object via a mouse drag motion with the second
mouse button. See MouseRotate for similar usage info.
Creates a zoom behavior.
Note that this behavior still needs a transform
group to work on (use setTransformGroup(tg)) and
the transform group must add this behavior.
Parameters: flags -
Creates a zoom behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent. The behavior is added to the
specified Component. A null component can be passed to specify
the behavior should use listeners. Components can then be added
to the behavior with the addListener(Component c) method.
Parameters: c - The Component to add the MouseListenerand MouseMotionListener to. since: Java 3D 1.2.1
Creates a zoom behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent. The behaviors is added to
the specified Component and works on the given TransformGroup.
Parameters: c - The Component to add the MouseListener andMouseMotionListener to. A null component can be passed to specifythe behavior should use listeners. Components can then be addedto the behavior with the addListener(Component c) method. Parameters: transformGroup - The TransformGroup to operate on. since: Java 3D 1.2.1
Creates a zoom behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent. The behavior is added to the
specified Component. A null component can be passed to specify
the behavior should use listeners. Components can then be added
to the behavior with the addListener(Component c) method.
Note that this behavior still needs a transform
group to work on (use setTransformGroup(tg)) and the transform
group must add this behavior.
Parameters: flags - interesting flags (wakeup conditions). since: Java 3D 1.2.1