com.hdcookbook.grin.mosaic
Class MosaicMaker

java.lang.Object
  extended by com.hdcookbook.grin.mosaic.MosaicMaker

public class MosaicMaker
extends java.lang.Object

This class has the main logic for making a set of image mosaics for one or more GRIN show files. An image mosaic is a bunch of little images that are stuck together into one big image, plus data about where each little image was put in the mosaic. By packaging images as a mosaic, the startup time of an xlet can be dramatically improved, since many image decoders have a substantial fixed latency that doesn't vary much with image size.

Author:
Bill Foote (http://jovial.com)

Constructor Summary
MosaicMaker(SEShow[] showTrees, java.io.File outputDir, boolean headless)
          Create a mosaic maker
 
Method Summary
 void destroy()
           
 void init()
           
 void makeMosaics()
          The main loop that reads all the shows, adds all the images to mosaics, then writes the mosaics out.
 void paintFrame(java.awt.Graphics g)
          Paint something.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MosaicMaker

public MosaicMaker(SEShow[] showTrees,
                   java.io.File outputDir,
                   boolean headless)
Create a mosaic maker

Parameters:
showTrees - The GRIN shows these mosaics are for
outputDir - Where to write the mosaics
Method Detail

init

public void init()
          throws java.io.IOException
Throws:
java.io.IOException

destroy

public void destroy()

paintFrame

public void paintFrame(java.awt.Graphics g)
Paint something.


makeMosaics

public void makeMosaics()
                 throws java.io.IOException
The main loop that reads all the shows, adds all the images to mosaics, then writes the mosaics out.

Throws:
java.io.IOException