Package org.jmol.awt
Class Image
java.lang.Object
org.jmol.awt.Image
methods required by Jmol that access java.awt.Image
private to org.jmol.awt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DirectColorModel
private static final int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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
(package private) static Object
getGraphics
(Object image) (package private) static int
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
(package private) static int[]
grabPixels
(Object imageobj, int width, int height, int[] pixels) (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 Details
-
rgbColorModel
-
sampleModelBitMasks
private static final int[] sampleModelBitMasks
-
-
Constructor Details
-
Image
Image()
-
-
Method Details
-
createImage
-
waitForDisplay
- Parameters:
vwr
-image
-- Throws:
InterruptedException
-
getWidth
-
getHeight
-
grabPixels
-
drawImageToBuffer
-
getTextPixels
-
newBufferedImage
-
newBufferedImage
-
allocateRgbImage
static Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent) - Parameters:
windowWidth
-windowHeight
-pBuffer
-windowSize
-backgroundTransparent
-- Returns:
- an Image
-
getStaticGraphics
- Parameters:
image
-backgroundTransparent
-- Returns:
- Graphics object
-
getGraphics
-
flush
-
disposeGraphics
-
getImageDialog
public static GenericImageDialog getImageDialog(PlatformViewer vwr, String title, Map<String, GenericImageDialog> imageMap)
-