com.threerings.getdown.util
Class MetaProgressObserver

java.lang.Object
  extended by com.threerings.getdown.util.MetaProgressObserver
All Implemented Interfaces:
ProgressObserver

public class MetaProgressObserver
extends Object
implements ProgressObserver

Accumulates the progress from a number of elements into a single smoothly progressing progress.


Constructor Summary
MetaProgressObserver(ProgressObserver target, long totalSize)
           
 
Method Summary
 void progress(int percent)
          Informs the observer that we have completed the specified percentage of the process.
 void startElement(long elementSize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaProgressObserver

public MetaProgressObserver(ProgressObserver target,
                            long totalSize)
Method Detail

startElement

public void startElement(long elementSize)

progress

public void progress(int percent)
Description copied from interface: ProgressObserver
Informs the observer that we have completed the specified percentage of the process.

Specified by:
progress in interface ProgressObserver


Copyright © 2013. All Rights Reserved.