Class DisplayQueue

java.lang.Object
  |
  +--DisplayQueue

public class DisplayQueue
extends java.lang.Object

A queue of the most recently accessed 3D VR objects.


Field Summary
protected  DATA info
           
protected  java.util.LinkedList queue
           
 
Constructor Summary
DisplayQueue(DATA info)
          Default Constructor.
 
Method Summary
 void add(OREntry object)
          Add a new object to the display queue.
 void trim_displayed(Variable variable)
          Remove objects from variable which are not in the display list.
 void trim_not_displayed(Variable variable)
          Remove objects from variable which are in the display list.
 void trim_oldest(Variable variable)
          Trim all object except the least recently accesed one.
 void trim_recent(Variable variable)
          Trim all object except the most recently accesed one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected java.util.LinkedList queue

info

protected DATA info
Constructor Detail

DisplayQueue

public DisplayQueue(DATA info)
Default Constructor. Sets up the queue.
Method Detail

add

public void add(OREntry object)
Add a new object to the display queue. If the object is already in the display queue, it is moved to the front of the queue.
Parameters:
object - OREntry to add to list.

trim_displayed

public void trim_displayed(Variable variable)
Remove objects from variable which are not in the display list.
Parameters:
variable - Varialbe to trim.

trim_not_displayed

public void trim_not_displayed(Variable variable)
Remove objects from variable which are in the display list.
Parameters:
variable - Varialbe to trim.

trim_recent

public void trim_recent(Variable variable)
Trim all object except the most recently accesed one.
Parameters:
variable - Varible to trim.

trim_oldest

public void trim_oldest(Variable variable)
Trim all object except the least recently accesed one.
Parameters:
variable - Varible to trim.