D
Duane Evenson
I'm having a problem figuring out how I should design my program.
I am animating a network protocol stack, where the data expands out into
multiple chunks and as they drop through the network layers, collecting
the headers and tail. Each chunk, header, and tail is merely a colored
rectangle. At the physical layer, animated arrows show the transmission to
the receiver where the message rises back through the stack.
The user can change the message and MTU, so the number and size of
the packets is dynamic and I can't animate using a premade sequence of
images.
I've been looking without success for a good animation example but
can't find anything more complicated than a circle tracking the mouse.
Do I want to put all the animation in the paint() method? It gets big,
but all the animation sequences are programmed in a sequential order.
I could make 5 subclasses of a State class and cycle through them with
state.doAnimate(), but that seems only a half measure.
Or do I use sprite animation to animate each data chunk, header and tail?
Any recommendations, directions, or hints by anyone with animation
experience would be appreciated.
I am animating a network protocol stack, where the data expands out into
multiple chunks and as they drop through the network layers, collecting
the headers and tail. Each chunk, header, and tail is merely a colored
rectangle. At the physical layer, animated arrows show the transmission to
the receiver where the message rises back through the stack.
The user can change the message and MTU, so the number and size of
the packets is dynamic and I can't animate using a premade sequence of
images.
I've been looking without success for a good animation example but
can't find anything more complicated than a circle tracking the mouse.
Do I want to put all the animation in the paint() method? It gets big,
but all the animation sequences are programmed in a sequential order.
I could make 5 subclasses of a State class and cycle through them with
state.doAnimate(), but that seems only a half measure.
Or do I use sprite animation to animate each data chunk, header and tail?
Any recommendations, directions, or hints by anyone with animation
experience would be appreciated.