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 DirectColorModelprivate static final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ObjectallocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent) (package private) static ObjectcreateImage(Object data, PlatformViewer vwr) (package private) static voiddisposeGraphics(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 ObjectgetGraphics(Object image) (package private) static intstatic GenericImageDialoggetImageDialog(PlatformViewer vwr, String title, Map<String, GenericImageDialog> imageMap) (package private) static ObjectgetStaticGraphics(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 ObjectnewBufferedImage(int w, int h) (package private) static ObjectnewBufferedImage(Object image, int w, int h) (package private) static voidwaitForDisplay(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)
-