Forgive me if this is a double post, but I don't think my original post got through.


Hi,

Can someone explain why I can not access currentKnotIndex from an instance of a PositionPathInterpolator
class. From what I understand from reading the API document, PositionPathInterpolator
inherited from PathInterpolator, which have a protected field currentKnotIndex.
Thus PositionPathInterpolator should have access to currentKnotIndex, correct? So,
why can I not do this:

PositionPathInterpolator x = new PositionPathInterpolator(...);
...
int y = x.currentKnotIndex

The compiler gives this error message:
421: currentKnotIndex has protected access in javax.media.j3d.PathInterpolator

Please someone clearify, I posted this in the java.programmer newsgroup and no one
seems to know.
Thanks

Reply via email to