MouseTranslate is a Java3D behavior object that lets users control the
translation (X, Y) of an object via a mouse drag motion with the third
mouse button (alt-click on PC). See MouseRotate for similar usage info.
MouseTranslate(Component c) Creates a translate behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent.
public
MouseTranslate(Component c, TransformGroup transformGroup) Creates a translate behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent.
public
MouseTranslate(Component c, int flags) Creates a translate behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent.
Creates a translate 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 translate 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 translate 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.
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 MouseListener andMouseMotionListener to. Parameters: transformGroup - The TransformGroup to operate on. since: Java 3D 1.2.1
Creates a translate 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