Hi Raymond,

Your constructor should be...

>public class objTurn extends RotationInterpolator{
>    objTurn(Alpha alpha, TransformGroup targetTG){
        super( alpha, targetTG );
>      this.alpha=alpha;
>      this.targetTG=targetTG;
>    }
>}

Your original constructor did not have a call to the super class constructor
and the compiler therefore tried to access the null constructor in the
super class which threw the access permission exception.

Rgds

Paul


>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
>Date: Sat, 3 Feb 2001 11:32:54 -0000
>From: Raymond Lau <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Unable to extends RotationInterporlator like extending
Behavior              class
>To: [EMAIL PROTECTED]
>
>Dear Mr Paul,
>
>I understand the reason you think the error is made by setting up the wrong
>variable, but I have check I do throw in the Alpha class and TransformGroup
>class.
>
>Also the problem I get  is trying to set up a new class that extends
>RotationInterpolator and not access it directly. I have tried to use similar
>structure by extending Behavior class which work superly.
>
>_____________
>MouseNavigatorApp.java:93: RotationInterpolator() is not public in
>javax.media.j
>3d.RotationInterpolator; cannot be accessed from outside package
>        objTurn(Alpha alpha, TransformGroup targetTG){
>_____________
>This is a Constructor of the class that extends RotationInterpolator.
>
>Constructor I used
>| |
>\/
>public class objTurn extends RotationInterpolator{
>    objTurn(Alpha alpha, TransformGroup targetTG){
>      this.alpha=alpha;
>      this.targetTG=targetTG;
>    }
>}
>
>The reason I do this is because I want to use the method inside the behavior
>classes
>_____________
>public void processStimulus(Enumeration criteria){
>public void initialize(){
>_____________
>
>With this method I can set the animation to start at specify wakeCreiteria.
>
>I have try to use your approach by setting up the RotationInterporlator
>directly like this.
>
>____________
>        RotationInterpolator rotInt = new RotationInterpolator (alpha,
>objSpin);
>        rotInt.setSchedulingBounds(new BoundingSphere());
>objRoot.addChild(rotInt);
>____________
>
>But, this will not allow me to change the Process stimulus and wake up
>creterial. which is n't what I want.
>
>I understand my approach is not the only approach to do trigger and control
>animation, if you have any other solution I would love to hear it.
>
>Thank you for helping me.
>
>yours sincerely
>
>Raymond Lau
>
>===========================================================================
>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".

----------------------------------------------------------
Paul Byrne                      Email : [EMAIL PROTECTED]
Sun Microsystems                Phone : (650) 786 9926
Visualization Software Group    Fax   : (650) 786 5852
----------------------------------------------------------

===========================================================================
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