[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [Fwd: AnimationControl - turning animation string on/off.]
Don,
> > I have put your modifed AnimationControl.java,
> > AnimationControlJ2D.java and AnimationControlJ3D.java in
> > the Jar files at:
> >
> > ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/
> >
> > Thank you for this work.
>
> What do these mods do? Jim's note didn't say. I noticed you
> checked in some other changes to change the way single
> time fields were handled, but couldn't figure out how to
> use them.
Here's the text from Jim's message that pine left out of
my reply:
I have made a small change to AnimationControl and its
implementations that allows you to turn off the animation
string.
Please find attached AnimationControl.java, AnimationControlJ2D.java
and AnimationControlJ3D.java. The change includes adding a method
called "enableAnimationString(boolean enabled)" which controls
whether or not the animation string is displayed.
> > By the way, does anyone recall is there is already a way to
> > disable display of Animation Strings? It seems to me there
> > may be, but I couldn't find it.
>
> The way I do it in the IDV is to have a customized
> DisplayRenderer which overrides setAnimationString():
> . . .
Thanks. Nice to see that you were able to accomplish the
same thing by an extension of DefaultDisplayRendererJ3D.
Since I've already committed Jim's code, since it makes
this functionality accessible without any class extenson,
and since AnimationControl is a natural and more specific
place for this logic, I'll stick with that.
Jim, new variables in subclasses of Control should be
incorporated in the equals() and syncControl() methods.
I've done this for showAnimationString.
Bill