org.jmol.g3d

Class Swing3D

final class Swing3D extends Platform3D

Implementation of Platform3D when using Swing on JVMs >= 1.2

Uses the BufferedImage classe to turn an int[] into an Image that can be drawn.

This is used by everything except MSFT Internet Explorer with the MSFT JVM, and Netscape 4.* on both Win32 and MacOS 9.

Author: Miguel, miguel@jmol.org

Field Summary
static booleanbackgroundTransparent
static DirectColorModelrgbColorModel
static DirectColorModelrgbColorModelT
static int[]sampleModelBitMasks
static int[]sampleModelBitMasksT
Method Summary
ImageallocateImage()
ImageallocateOffscreenImage(int width, int height)
GraphicsgetGraphics(Image image)
static GraphicsgetStaticGraphics(Image image)
voidsetBackgroundTransparent(boolean tf)

Field Detail

backgroundTransparent

private static boolean backgroundTransparent

rgbColorModel

private static final DirectColorModel rgbColorModel

rgbColorModelT

private static final DirectColorModel rgbColorModelT

sampleModelBitMasks

private static final int[] sampleModelBitMasks

sampleModelBitMasksT

private static final int[] sampleModelBitMasksT

Method Detail

allocateImage

Image allocateImage()

allocateOffscreenImage

Image allocateOffscreenImage(int width, int height)

getGraphics

Graphics getGraphics(Image image)

getStaticGraphics

static Graphics getStaticGraphics(Image image)

setBackgroundTransparent

void setBackgroundTransparent(boolean tf)