de.grogra.imp
public class ExternalRenderer extends Renderer implements javax.imageio.event.IIOReadUpdateListener
| Modifier and Type | Field and Description |
|---|---|
static FilterSource.MetaDataKey<java.util.Collection<java.io.File>> |
FILELIST |
protected java.awt.image.BufferedImage |
image |
protected javax.imageio.ImageReader |
imageReader |
protected java.lang.Thread |
imageReaderThread |
protected java.io.File |
in |
protected java.io.File |
out |
protected MimeType |
outMimeType |
protected Map |
params |
protected java.lang.Process |
process |
protected java.lang.Thread |
thread |
| Constructor and Description |
|---|
ExternalRenderer(Map params) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
createOutFile() |
protected java.io.File |
createTempFile() |
void |
dispose() |
protected MimeType |
getMimeType() |
java.lang.String |
getName() |
protected MimeType |
getOutputMimeType() |
void |
imageUpdate(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands) |
void |
passComplete(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage) |
void |
passStarted(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands) |
void |
render() |
protected java.lang.Process |
startProcess() |
void |
thumbnailPassComplete(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail) |
void |
thumbnailPassStarted(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands) |
void |
thumbnailUpdate(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands) |
protected boolean |
useStdOut() |
protected void |
watchProcess() |
addImageObserver, computeImage, imageUpdate, initialize, initializeImpl, waitForImagepublic static final FilterSource.MetaDataKey<java.util.Collection<java.io.File>> FILELIST
protected volatile java.awt.image.BufferedImage image
protected javax.imageio.ImageReader imageReader
protected java.lang.Thread imageReaderThread
protected java.io.File in
protected java.io.File out
protected MimeType outMimeType
protected Map params
protected java.lang.Process process
protected volatile java.lang.Thread thread
public ExternalRenderer(Map params)
protected java.io.File createOutFile()
throws java.io.IOException
java.io.IOExceptionprotected java.io.File createTempFile()
throws java.io.IOException
java.io.IOExceptionpublic void dispose()
dispose in interface Disposableprotected MimeType getMimeType()
protected MimeType getOutputMimeType()
public void imageUpdate(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
imageUpdate in interface javax.imageio.event.IIOReadUpdateListenerpublic void passComplete(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage)
passComplete in interface javax.imageio.event.IIOReadUpdateListenerpublic void passStarted(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theImage,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands)
passStarted in interface javax.imageio.event.IIOReadUpdateListenerpublic void render()
throws java.io.IOException
protected java.lang.Process startProcess()
throws java.io.IOException
java.io.IOExceptionpublic void thumbnailPassComplete(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail)
thumbnailPassComplete in interface javax.imageio.event.IIOReadUpdateListenerpublic void thumbnailPassStarted(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail,
int pass,
int minPass,
int maxPass,
int minX,
int minY,
int periodX,
int periodY,
int[] bands)
thumbnailPassStarted in interface javax.imageio.event.IIOReadUpdateListenerpublic void thumbnailUpdate(javax.imageio.ImageReader source,
java.awt.image.BufferedImage theThumbnail,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
thumbnailUpdate in interface javax.imageio.event.IIOReadUpdateListenerprotected boolean useStdOut()
protected void watchProcess()
throws java.io.IOException
java.io.IOException