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 Summary
Fields Modifier and Type Field Description private static DirectColorModel
rgbColorModel
private static int[]
sampleModelBitMasks
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static Object
allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent)
(package private) static Object
createImage(Object data, PlatformViewer vwr)
(package private) static void
disposeGraphics(Object graphicForText)
(package private) static int[]
drawImageToBuffer(Object gOffscreen, Object imageOffscreen, Object imageobj, int width, int height, int bgcolor)
(package private) static void
flush(Object image)
(package private) static Object
getGraphics(Object image)
(package private) static int
getHeight(Object image)
static GenericImageDialog
getImageDialog(PlatformViewer vwr, String title, Map<String,GenericImageDialog> imageMap)
(package private) static Object
getStaticGraphics(Object image, boolean backgroundTransparent)
static int[]
getTextPixels(String text, Font font3d, Object gObj, Object image, int width, int height, int ascent)
(package private) static int
getWidth(Object image)
(package private) static int[]
grabPixels(Object imageobj, int width, int height, int[] pixels, int startRow, int nRows)
(package private) static Object
newBufferedImage(int w, int h)
(package private) static Object
newBufferedImage(Object image, int w, int h)
(package private) static void
waitForDisplay(PlatformViewer vwr, Object image)
-
-
-
Field Detail
-
rgbColorModel
private static final DirectColorModel rgbColorModel
-
sampleModelBitMasks
private static final int[] sampleModelBitMasks
-
-
Method Detail
-
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, int startRow, int nRows)
-
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(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
-
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)
-
-