org.jmol.g3d
Class Awt3D

java.lang.Object
  extended by org.jmol.g3d.Platform3D
      extended by org.jmol.g3d.Awt3D
All Implemented Interfaces:
java.awt.image.ImageProducer

final class Awt3D
extends Platform3D
implements java.awt.image.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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jmol.g3d.Platform3D
Platform3D.ClearingThread
 
Field Summary
(package private)  java.awt.image.ColorModel colorModelRGB
           
(package private)  java.awt.Component component
           
(package private)  java.awt.image.ImageConsumer ic
           
 
Fields inherited from class org.jmol.g3d.Platform3D
bufferHeight, bufferSize, bufferSizeT, bufferWidth, clearingThread, desireClearingThread, forcePlatformAWT, gOffscreen, heightOffscreen, imageOffscreen, imagePixelBuffer, pBuffer, pBufferT, useClearingThread, widthOffscreen, windowHeight, windowSize, windowWidth, zBuffer, zBufferT
 
Constructor Summary
Awt3D(java.awt.Component component)
           
 
Method Summary
 void addConsumer(java.awt.image.ImageConsumer ic)
           
(package private)  java.awt.Image allocateImage()
           
(package private)  java.awt.Image allocateOffscreenImage(int width, int height)
           
(package private)  java.awt.Graphics getGraphics(java.awt.Image image)
           
 boolean isConsumer(java.awt.image.ImageConsumer ic)
           
(package private)  void notifyEndOfRendering()
           
 void removeConsumer(java.awt.image.ImageConsumer ic)
           
 void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
           
 void startProduction(java.awt.image.ImageConsumer ic)
           
 
Methods inherited from class org.jmol.g3d.Platform3D
allocateBuffers, allocateTBuffers, checkOffscreenSize, clearScreenBuffer, clearScreenBufferThreaded, clearTBuffer, createInstance, hasContent, initialize, obtainScreenBuffer, releaseBuffers, setBackgroundColor, setBackgroundTransparent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

java.awt.Component component

colorModelRGB

java.awt.image.ColorModel colorModelRGB

ic

java.awt.image.ImageConsumer ic
Constructor Detail

Awt3D

Awt3D(java.awt.Component component)
Method Detail

allocateImage

java.awt.Image allocateImage()
Specified by:
allocateImage in class Platform3D

notifyEndOfRendering

void notifyEndOfRendering()
Overrides:
notifyEndOfRendering in class Platform3D

allocateOffscreenImage

java.awt.Image allocateOffscreenImage(int width,
                                      int height)
Specified by:
allocateOffscreenImage in class Platform3D

getGraphics

java.awt.Graphics getGraphics(java.awt.Image image)
Specified by:
getGraphics in class Platform3D

addConsumer

public void addConsumer(java.awt.image.ImageConsumer ic)
Specified by:
addConsumer in interface java.awt.image.ImageProducer

isConsumer

public boolean isConsumer(java.awt.image.ImageConsumer ic)
Specified by:
isConsumer in interface java.awt.image.ImageProducer

removeConsumer

public void removeConsumer(java.awt.image.ImageConsumer ic)
Specified by:
removeConsumer in interface java.awt.image.ImageProducer

requestTopDownLeftRightResend

public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
Specified by:
requestTopDownLeftRightResend in interface java.awt.image.ImageProducer

startProduction

public void startProduction(java.awt.image.ImageConsumer ic)
Specified by:
startProduction in interface java.awt.image.ImageProducer