|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hdcookbook.grin.mosaic.MosaicMaker
public class MosaicMaker
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.
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 |
---|
public MosaicMaker(SEShow[] showTrees, java.io.File outputDir, boolean headless)
showTrees
- The GRIN shows these mosaics are foroutputDir
- Where to write the mosaicsMethod Detail |
---|
public void init() throws java.io.IOException
java.io.IOException
public void destroy()
public void paintFrame(java.awt.Graphics g)
public void makeMosaics() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |