> Date:         Thu, 13 Jun 2002 11:48:24 -0700
> From: Kelvin Chung <[EMAIL PROTECTED]>
>
>   This bug 4529746 -
> ViewingPlatform setViewPlatformBehavior throw Exception if Viewer not set
> before is fixed in v1.3 beta2.

In addition there is following problem:

>> Date:         Thu, 13 Jun 2002 20:41:10 +0200
>> From: portsacero <[EMAIL PROTECTED]>
>>
>> I would like using the OrbitBehavior utility but I receive the next
>> message when i try to run my app:
>>
>> java.lang.ArrayIndexOutOfBoundsException
>> [...]
>> and some lines of my Visor3 class are:
>>
>> OrbitBehavior orbitBehavior = new OrbitBehavior(canvas3D);   //88
>> viewingPlatform.setViewPlatformBehavior(orbitBehavior); //89
>> orbitBehavior.setViewingPlatform( viewingPlatform); //90

setViewingPlatform() should *not* be called by the application.  It's called by
the ViewingPlatform.  This part of the javadoc for ViewPlatformBehavior is
correct.  Unfortunately ViewPlatformBehavior and ViewingPlatform are in
different packages so the method has to be public.  I do think the behavior and
universe packages and their class hierarchies could benefit from a redesign,
but that's the way it is for now.

>> in the api says that I must use the
>> viewingPlatform.addViewPlatformBehavior(orbitBehavior) method but it is
>> not public!!

This is a bug in the javadoc for OrbitBehavior.  It should read:

"This behavior must be added to the ViewingPlatform using the
ViewingPlatform.setViewPlatformBehavior() method."
                ^^^

-- Mark Hood

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to