prefuse.util.display
Class RenderingQueue

java.lang.Object
  extended by prefuse.util.display.RenderingQueue

public class RenderingQueue
extends java.lang.Object

A helper class representing rendering and picking queues. This functionality is listed separately to keep the Display implementation a bit cleaner. Fields are public and used directly by a single Display instance.

Author:
jeffrey heer

Field Summary
 VisualItem[] pitems
           
 int[] pscores
           
 int psize
           
 boolean psorted
           
 VisualItem[] ritems
           
 int[] rscores
           
 int rsize
           
 ItemSorter sort
           
 
Constructor Summary
RenderingQueue()
           
 
Method Summary
 void addToPickingQueue(VisualItem item)
          Add an item to the picking queue.
 void addToRenderQueue(VisualItem item)
          Add an item to the rendering queue.
 void clean()
          Clears the rendering queue and resizes internal arrays to a small size.
 void clear()
          Clear both rendering and picking queues.
 void sortPickingQueue()
          Sort the picking queue.
 void sortRenderQueue()
          Sort the rendering queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sort

public ItemSorter sort

ritems

public VisualItem[] ritems

rscores

public int[] rscores

rsize

public int rsize

pitems

public VisualItem[] pitems

pscores

public int[] pscores

psize

public int psize

psorted

public boolean psorted
Constructor Detail

RenderingQueue

public RenderingQueue()
Method Detail

clear

public void clear()
Clear both rendering and picking queues.


clean

public void clean()
Clears the rendering queue and resizes internal arrays to a small size. This should help reclaim used memory.


addToRenderQueue

public void addToRenderQueue(VisualItem item)
Add an item to the rendering queue.

Parameters:
item - the item to add

addToPickingQueue

public void addToPickingQueue(VisualItem item)
Add an item to the picking queue.

Parameters:
item - the item to add

sortRenderQueue

public void sortRenderQueue()
Sort the rendering queue.


sortPickingQueue

public void sortPickingQueue()
Sort the picking queue.



Copyright © 2007 Regents of the University of California