Class Netmonitor.AnimationQueue

java.lang.Object
  extended byNetmonitor.AnimationQueue
Enclosing class:
Netmonitor

class Netmonitor.AnimationQueue
extends java.lang.Object

Fifo circular buffer that holds animation frames.


Field Summary
private  Netmonitor.AnimationFrame[] animationFrames
           
private  int framesInBuffer
           
private  int head
           
private  int maxBufferSize
           
private  int tail
           
 
Constructor Summary
Netmonitor.AnimationQueue(int maxSize)
           
 
Method Summary
 Netmonitor.AnimationFrame getFrame()
           
 void putFrame(Netmonitor.AnimationFrame frame)
           
 void setMaxBufferSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

animationFrames

private Netmonitor.AnimationFrame[] animationFrames

maxBufferSize

private int maxBufferSize

framesInBuffer

private int framesInBuffer

head

private int head

tail

private int tail
Constructor Detail

Netmonitor.AnimationQueue

public Netmonitor.AnimationQueue(int maxSize)
Method Detail

getFrame

public Netmonitor.AnimationFrame getFrame()

putFrame

public void putFrame(Netmonitor.AnimationFrame frame)

setMaxBufferSize

public void setMaxBufferSize(int size)