Package org.jmol.awt

Class Image

java.lang.Object
org.jmol.awt.Image

class Image extends Object
methods required by Jmol that access java.awt.Image private to org.jmol.awt
  • Field Details

    • rgbColorModel

      private static final DirectColorModel rgbColorModel
    • sampleModelBitMasks

      private static final int[] sampleModelBitMasks
  • Constructor Details

    • Image

      Image()
  • Method Details

    • createImage

      static Object createImage(Object data, PlatformViewer vwr)
    • waitForDisplay

      static void waitForDisplay(PlatformViewer vwr, Object image) throws InterruptedException
      Parameters:
      vwr -
      image -
      Throws:
      InterruptedException
    • getWidth

      static int getWidth(Object image)
    • getHeight

      static int getHeight(Object image)
    • grabPixels

      static int[] grabPixels(Object imageobj, int width, int height, int[] pixels)
    • drawImageToBuffer

      static int[] drawImageToBuffer(Object gOffscreen, Object imageOffscreen, Object imageobj, int width, int height, int bgcolor)
    • getTextPixels

      public static int[] getTextPixels(String text, Font font3d, Object gObj, Object image, int width, int height, int ascent)
    • newBufferedImage

      static Object newBufferedImage(Object image, int w, int h)
    • newBufferedImage

      static Object newBufferedImage(int w, int h)
    • allocateRgbImage

      static Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent)
      Parameters:
      windowWidth -
      windowHeight -
      pBuffer -
      windowSize -
      backgroundTransparent -
      Returns:
      an Image
    • getStaticGraphics

      static Object getStaticGraphics(Object image, boolean backgroundTransparent)
      Parameters:
      image -
      backgroundTransparent -
      Returns:
      Graphics object
    • getGraphics

      static Object getGraphics(Object image)
    • flush

      static void flush(Object image)
    • disposeGraphics

      static void disposeGraphics(Object graphicForText)
    • getImageDialog

      public static GenericImageDialog getImageDialog(PlatformViewer vwr, String title, Map<String,GenericImageDialog> imageMap)