public abstract class ImageComponentState extends NodeComponentState
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
byReference |
private static int |
DATA_BUFFER_INT |
private static int |
DIRECT_COLOR_MODEL |
protected int |
format |
static byte |
GZIP_COMPRESSION
Use GZIP to compress images.
|
protected int |
height |
static byte |
JPEG_COMPRESSION
Use JPEG compression for images
JPEG compression is currently the default.
|
static byte |
NO_COMPRESSION
Do not compress the images
|
private static int |
SINGLE_PIXEL_PACKED_SAMPLE_MODEL |
protected int |
width |
protected boolean |
yUp |
control, node, nodeClassName, symbol| Constructor and Description |
|---|
ImageComponentState(SymbolTableData symbol,
Controller control) |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.image.BufferedImage |
readBufferedImage(java.io.DataInput in) |
private java.awt.image.BufferedImage |
readBufferedImageGzipCompression(java.io.DataInput in) |
private java.awt.image.BufferedImage |
readBufferedImageJpegCompression(java.io.DataInput in) |
private java.awt.image.BufferedImage |
readBufferedImageNoCompression(java.io.DataInput in) |
private java.awt.image.ColorModel |
readColorModel(java.io.DataInput in) |
protected void |
readConstructorParams(java.io.DataInput in)
Read the parameters required for the constructor of the Java3D object
|
private java.awt.image.DataBuffer |
readDataBuffer(java.io.DataInput in) |
private java.awt.image.DataBufferInt |
readDataBufferInt(java.io.DataInput in) |
private java.awt.image.DirectColorModel |
readDirectColorModel(java.io.DataInput in) |
private java.awt.image.SampleModel |
readSampleModel(java.io.DataInput in) |
private java.awt.image.SinglePixelPackedSampleModel |
readSinglePixelPackedSampleModel(java.io.DataInput in) |
private java.awt.image.WritableRaster |
readWritableRaster(java.io.DataInput in) |
protected void |
writeBufferedImage(java.io.DataOutput out,
java.awt.image.BufferedImage image) |
private void |
writeBufferedImageGzipCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image) |
private void |
writeBufferedImageJpegCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image) |
private void |
writeBufferedImageNoCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image) |
private void |
writeColorModel(java.io.DataOutput out,
java.awt.image.ColorModel colorModel) |
protected void |
writeConstructorParams(java.io.DataOutput out)
Write the parameters required for the constructor of the Java3D object
|
private void |
writeDataBuffer(java.io.DataOutput out,
java.awt.image.DataBuffer buffer) |
private void |
writeDataBufferInt(java.io.DataOutput out,
java.awt.image.DataBufferInt buffer) |
private void |
writeDirectColorModel(java.io.DataOutput out,
java.awt.image.DirectColorModel colorModel) |
private void |
writeSampleModel(java.io.DataOutput out,
java.awt.image.SampleModel model) |
private void |
writeSinglePixelPackedSampleModel(java.io.DataOutput out,
java.awt.image.SinglePixelPackedSampleModel model) |
private void |
writeWritableRaster(java.io.DataOutput out,
java.awt.image.WritableRaster raster) |
addSubReference, readObject, writeObjectbuildGraph, cleanup, createNode, createNode, createNode, createNode, createState, getNode, getNodeID, getSymbol, readString, writeStringprotected int format
protected int height
protected int width
protected boolean byReference
protected boolean yUp
private static final int DIRECT_COLOR_MODEL
private static final int SINGLE_PIXEL_PACKED_SAMPLE_MODEL
private static final int DATA_BUFFER_INT
public static final byte NO_COMPRESSION
public static final byte GZIP_COMPRESSION
public static final byte JPEG_COMPRESSION
public ImageComponentState(SymbolTableData symbol, Controller control)
protected void writeConstructorParams(java.io.DataOutput out)
throws java.io.IOException
SceneGraphObjectStatewriteConstructorParams in class SceneGraphObjectStatejava.io.IOExceptionprotected void readConstructorParams(java.io.DataInput in)
throws java.io.IOException
SceneGraphObjectStatereadConstructorParams in class SceneGraphObjectStatejava.io.IOExceptionprotected void writeBufferedImage(java.io.DataOutput out,
java.awt.image.BufferedImage image)
throws java.io.IOException
java.io.IOExceptionprivate void writeBufferedImageNoCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image)
throws java.io.IOException
java.io.IOExceptionprivate void writeBufferedImageGzipCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image)
throws java.io.IOException
java.io.IOExceptionprivate void writeBufferedImageJpegCompression(java.io.DataOutput out,
java.awt.image.BufferedImage image)
throws java.io.IOException
java.io.IOExceptionprotected java.awt.image.BufferedImage readBufferedImage(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.BufferedImage readBufferedImageNoCompression(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.BufferedImage readBufferedImageGzipCompression(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.BufferedImage readBufferedImageJpegCompression(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeColorModel(java.io.DataOutput out,
java.awt.image.ColorModel colorModel)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.ColorModel readColorModel(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeDirectColorModel(java.io.DataOutput out,
java.awt.image.DirectColorModel colorModel)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.DirectColorModel readDirectColorModel(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeWritableRaster(java.io.DataOutput out,
java.awt.image.WritableRaster raster)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.WritableRaster readWritableRaster(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeSampleModel(java.io.DataOutput out,
java.awt.image.SampleModel model)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.SampleModel readSampleModel(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeSinglePixelPackedSampleModel(java.io.DataOutput out,
java.awt.image.SinglePixelPackedSampleModel model)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.SinglePixelPackedSampleModel readSinglePixelPackedSampleModel(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeDataBuffer(java.io.DataOutput out,
java.awt.image.DataBuffer buffer)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.DataBuffer readDataBuffer(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionprivate void writeDataBufferInt(java.io.DataOutput out,
java.awt.image.DataBufferInt buffer)
throws java.io.IOException
java.io.IOExceptionprivate java.awt.image.DataBufferInt readDataBufferInt(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.