app
Class Fic

java.lang.Object
  extended by app.Fic
All Implemented Interfaces:
java.lang.Runnable, java.util.Observer

public class Fic
extends java.lang.Object
implements java.util.Observer, java.lang.Runnable

The fic object is the main run system of the application. Fic handles the interpretation of the configuration, runs the appropriate commands with the appropriate values.


Constructor Summary
Fic(Configuration configuration)
           
 
Method Summary
 FractalModel compress(java.awt.image.BufferedImage image)
           
 java.awt.image.BufferedImage decompress(FractalModel fmodel)
           
 FractalModel readModel()
           
 void run()
           
 void update(java.util.Observable observableSource, java.lang.Object arr_done_all)
          Update the state of the progress bar.
 void writeImage(java.awt.image.BufferedImage image)
           
 void writeModel(FractalModel fmodel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fic

public Fic(Configuration configuration)
Parameters:
configuration - the configuration options
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

update

public void update(java.util.Observable observableSource,
                   java.lang.Object arr_done_all)
Update the state of the progress bar. The argument is an array of int with two elements. The first represents the current work done, and the second the whole work that is needed to be done in order to consider the task complete.

Specified by:
update in interface java.util.Observer
Parameters:
observableSource - the observable object that changed state
arr_done_all - array with current completed work

compress

public FractalModel compress(java.awt.image.BufferedImage image)

writeModel

public void writeModel(FractalModel fmodel)

readModel

public FractalModel readModel()

decompress

public java.awt.image.BufferedImage decompress(FractalModel fmodel)

writeImage

public void writeImage(java.awt.image.BufferedImage image)