net.groboclown.gui.paintpipe.v1
Class SimpleZOrderPainter.ZOrderCollection

java.lang.Object
  |
  +--net.groboclown.gui.paintpipe.v1.SimpleZOrderPainter.ZOrderCollection
All Implemented Interfaces:
Collection
Enclosing class:
SimpleZOrderPainter

class SimpleZOrderPainter.ZOrderCollection
extends Object
implements Collection

The only operations used are: clear(), add( Object ), and iterator(). Iterator must implement all the methods provided. Othre than that, no other operator is implemented.


Constructor Summary
(package private) SimpleZOrderPainter.ZOrderCollection()
           
 
Method Summary
 boolean add(Object pe)
          Processes the next PaintEvent from the input queue.
 boolean addAll(Collection c)
           
private  void advancePointer()
           
 void clear()
          Resets the list for another frame.
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean isEmpty()
           
 Iterator iterator()
          Creates an iterator for the list.
private  void processDepth()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] o)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

SimpleZOrderPainter.ZOrderCollection

SimpleZOrderPainter.ZOrderCollection()
Method Detail

add

public boolean add(Object pe)
Processes the next PaintEvent from the input queue. It doesn't have to post any output events, but it can.

This puts the event into the proper location, depending on the Z-Depth. Unknown events are ignored. When a Z-depth is ready for outputting to the pipe, SortingPainter.processImage(net.groboclown.gui.paintpipe.v1.PaintEvent) is called. Events to a to-be fired event depth are overridden, and previously fired depth events are ignored.

Specified by:
add in interface Collection
Parameters:
pe - the event which is to be processed.

clear

public void clear()
Resets the list for another frame.
Specified by:
clear in interface Collection

iterator

public Iterator iterator()
Creates an iterator for the list.
Specified by:
iterator in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection

size

public int size()
Specified by:
size in interface Collection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[] o)
Specified by:
toArray in interface Collection

advancePointer

private void advancePointer()

processDepth

private void processDepth()


Written under the LGPL