org.jmol.g3d

Class Awt3D

final class Awt3D extends Platform3D implements ImageProducer

Implementation of Platform3D when using AWT on 1.1 JVMs.

Uses the AWT imaging routines to convert an int[] of ARGB values into an Image by implementing the ImageProducer interface.

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

Author: Miguel, miguel@jmol.org

Field Summary
ColorModelcolorModelRGB
Componentcomponent
ImageConsumeric
Constructor Summary
Awt3D(Component component)
Method Summary
voidaddConsumer(ImageConsumer ic)
ImageallocateImage()
ImageallocateOffscreenImage(int width, int height)
GraphicsgetGraphics(Image image)
booleanisConsumer(ImageConsumer ic)
voidnotifyEndOfRendering()
voidremoveConsumer(ImageConsumer ic)
voidrequestTopDownLeftRightResend(ImageConsumer ic)
voidstartProduction(ImageConsumer ic)

Field Detail

colorModelRGB

ColorModel colorModelRGB

component

Component component

ic

ImageConsumer ic

Constructor Detail

Awt3D

Awt3D(Component component)

Method Detail

addConsumer

public void addConsumer(ImageConsumer ic)

allocateImage

Image allocateImage()

allocateOffscreenImage

Image allocateOffscreenImage(int width, int height)

getGraphics

Graphics getGraphics(Image image)

isConsumer

public boolean isConsumer(ImageConsumer ic)

notifyEndOfRendering

void notifyEndOfRendering()

removeConsumer

public void removeConsumer(ImageConsumer ic)

requestTopDownLeftRightResend

public void requestTopDownLeftRightResend(ImageConsumer ic)

startProduction

public void startProduction(ImageConsumer ic)