All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.PixelArray

java.lang.Object
   |
   +----java.media.j3d.PixelArray

public abstract class PixelArray
extends Object
Abstract class that is used to define 2D or 3D PixelArray classes. This is used for texture images and background images.


Variable Index

 o FORMAT_CHANNEL8
Specifies that each pixel contains 1 8-bit channel: it can be used for only luminance or only alpha or only intensity
 o FORMAT_LUM4_ALPHA4
Specifies that each pixel contains 2 4-bit channels:one each for luminance and alpha.
 o FORMAT_LUM8_ALPHA8
Specifies that each pixel contains 2 8-bit channels:one each for luminance and alpha
 o FORMAT_R3_G3_B2
Specifies that each pixel contains 2 3-bit channels:one each for red, green, and 1 2-bit channel for blue.
 o FORMAT_RGB
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue.
 o FORMAT_RGB4
Specifies that each pixel contains 3 4-bit channels:one each for red, green, blue.
 o FORMAT_RGB5
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue.
 o FORMAT_RGB5_A1
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue and 1 1-bit channel for alpha
 o FORMAT_RGB8
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue.
 o FORMAT_RGBA
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha.
 o FORMAT_RGBA4
Specifies that each pixel contains 4 4-bit channels:one each for red, green, blue, alpha.
 o FORMAT_RGBA8
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha.

Constructor Index

 o PixelArray()
Constructs a PixelArray object.

Method Index

 o getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value.
 o getPixelData(byte[])
Gets a copy of the pixel data in this object.
 o setDuplicateOnCloneTree(boolean)
Sets this node's duplicateOnCloneTree value.
 o setPixelData(byte[])
Copies the specified pixel data to this object.

Variables

 o FORMAT_RGB
 public static final int FORMAT_RGB
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue. Same as FORMAT_RGB_8;

 o FORMAT_RGBA
 public static final int FORMAT_RGBA
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha. Same as FORMAT_RGBA_8;

 o FORMAT_RGB8
 public static final int FORMAT_RGB8
Specifies that each pixel contains 3 8-bit channels:one each for red, green, blue. Same as FORMAT_RGB;

 o FORMAT_RGBA8
 public static final int FORMAT_RGBA8
Specifies that each pixel contains 4 8-bit channels:one each for red, green, blue, alpha. Same as FORMAT_RGBA;

 o FORMAT_RGB5
 public static final int FORMAT_RGB5
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue.

 o FORMAT_RGB5_A1
 public static final int FORMAT_RGB5_A1
Specifies that each pixel contains 3 5-bit channels:one each for red, green, blue and 1 1-bit channel for alpha

 o FORMAT_RGB4
 public static final int FORMAT_RGB4
Specifies that each pixel contains 3 4-bit channels:one each for red, green, blue.

 o FORMAT_RGBA4
 public static final int FORMAT_RGBA4
Specifies that each pixel contains 4 4-bit channels:one each for red, green, blue, alpha.

 o FORMAT_LUM4_ALPHA4
 public static final int FORMAT_LUM4_ALPHA4
Specifies that each pixel contains 2 4-bit channels:one each for luminance and alpha.

 o FORMAT_LUM8_ALPHA8
 public static final int FORMAT_LUM8_ALPHA8
Specifies that each pixel contains 2 8-bit channels:one each for luminance and alpha

 o FORMAT_R3_G3_B2
 public static final int FORMAT_R3_G3_B2
Specifies that each pixel contains 2 3-bit channels:one each for red, green, and 1 2-bit channel for blue.

 o FORMAT_CHANNEL8
 public static final int FORMAT_CHANNEL8
Specifies that each pixel contains 1 8-bit channel: it can be used for only luminance or only alpha or only intensity

Constructors

 o PixelArray
 public PixelArray()
Constructs a PixelArray object.

Methods

 o setPixelData
 public void setPixelData(byte pixelData[])
Copies the specified pixel data to this object.

Parameters:
pixelData - array of bytes containing the pixel data
 o getPixelData
 public void getPixelData(byte pixelData[])
Gets a copy of the pixel data in this object.

Parameters:
pixelData - array of bytes that will receive a copy of the pixel data
 o setDuplicateOnCloneTree
 public final void setDuplicateOnCloneTree(boolean duplicate)
Sets this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Parameters:
duplicate - the value to set.
See Also:
cloneTree
 o getDuplicateOnCloneTree
 public final boolean getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Returns:
the value of this node's duplicateOnCloneTree
See Also:
cloneTree

All Packages  Class Hierarchy  This Package  Previous  Next  Index