|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hdcookbook.grin.mosaic.Mosaic
public class Mosaic
Represents a single mosaic image, composed of a number of parts, or tiles.
Constructor Summary | |
---|---|
Mosaic(MosaicSpec spec)
Create a new mosaic, with the given parameters |
Method Summary | |
---|---|
boolean |
compile(java.awt.Component progressComponent)
Compile this mosaic into an optimal arrangement. |
int |
getHeightUsed()
|
java.lang.String |
getOutputName()
Get the name of the file we'll be written to. |
int |
getPosition()
Get our position within the binary list of mosaics that's written out for GRIN to consult at runtime. |
int |
getWidthUsed()
|
MosaicPart |
putImage(ManagedImage mi,
int maxWidth,
int maxHeight)
Put the image represented by mi and im into the mosaic. |
void |
setPosition(int position)
Set our position within the binary list of mosaics that's written out for GRIN to consult at runtime. |
void |
writeMosaicImage(java.io.File out)
Write out our image buffer as a PNG image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mosaic(MosaicSpec spec)
Method Detail |
---|
public int getHeightUsed()
public int getWidthUsed()
public MosaicPart putImage(ManagedImage mi, int maxWidth, int maxHeight)
public boolean compile(java.awt.Component progressComponent)
public java.lang.String getOutputName()
public void setPosition(int position)
public int getPosition()
public void writeMosaicImage(java.io.File out) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |