MouseBehavior(int format) Initializes standard fields.
public
MouseBehavior(Component c, TransformGroup transformGroup) Creates a mouse behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent.
public
MouseBehavior(Component c, int format) Creates a mouse behavior that uses AWT listeners and behavior
posts rather than WakeupOnAWTEvent.
Method Summary
public void
addListener(Component c) Adds this behavior as a MouseListener, mouseWheelListener and MouseMotionListener to
the specified component.
Set this flag if you want to invert the inputs. This is useful when
the transform for the view platform is being changed instead of the
transform for the object.
Initializes standard fields. Note that this behavior still
needs a transform group to work on (use setTransformGroup(tg)) and
the transform group must add this behavior.
Parameters: format - flags
Creates a mouse 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 behaviors 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 mouse 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: format - interesting flags (wakeup conditions). since: Java 3D 1.2.1
Adds this behavior as a MouseListener, mouseWheelListener and MouseMotionListener to
the specified component. This method can only be called if
the behavior was created with one of the constructors that takes
a Component as a parameter.
Parameters: c - The component to add the MouseListener, MouseWheelListener andMouseMotionListener to. exception: IllegalStateException - if the behavior was not createdas a listener since: Java 3D 1.2.1
Swap a new transformGroup replacing the old one. This allows
manipulators to operate on different nodes.
Parameters: transformGroup - The *new* transform group to be manipulated.