app
Class Fic
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Fic
public Fic(Configuration configuration)
- Parameters:
configuration
- the configuration options
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 statearr_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)