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
|
Constructor Summary |
Image()
|
|
Method Summary |
(package private) static Object |
allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent)
|
(package private) static Object |
createImage(Object data)
|
(package private) static void |
disposeGraphics(Object g)
|
(package private) static void |
drawImage(Object g,
Object img,
int x,
int y)
|
(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)
|
(package private) static Object |
getJpgImage(ApiPlatform apiPlatform,
Viewer viewer,
int quality,
String comment)
|
(package private) static Graphics |
getStaticGraphics(Object image,
boolean backgroundTransparent)
|
(package private) static int |
getWidth(Object image)
|
(package private) static void |
grabPixels(Object imageobj,
int imageWidth,
int imageHeight,
int[] values)
|
(package private) static int[] |
grabPixels(Object imageobj,
int x,
int y,
int width,
int height)
|
(package private) static Object |
newBufferedImage(int w,
int h)
|
(package private) static Object |
newBufferedImage(Object image,
int w,
int h)
|
(package private) static void |
renderOffScreen(String text,
Font3D font3d,
Object gObj,
int mapWidth,
int height,
int ascent)
|
(package private) static void |
waitForDisplay(Object display,
Object image)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rgbColorModel
private static final DirectColorModel rgbColorModel
sampleModelBitMasks
private static final int[] sampleModelBitMasks
Image
Image()
createImage
static Object createImage(Object data)
waitForDisplay
static void waitForDisplay(Object display,
Object image)
throws InterruptedException
- Parameters:
display - image -
- Throws:
InterruptedException
getWidth
static int getWidth(Object image)
getHeight
static int getHeight(Object image)
getJpgImage
static Object getJpgImage(ApiPlatform apiPlatform,
Viewer viewer,
int quality,
String comment)
grabPixels
static void grabPixels(Object imageobj,
int imageWidth,
int imageHeight,
int[] values)
grabPixels
static int[] grabPixels(Object imageobj,
int x,
int y,
int width,
int height)
drawImageToBuffer
static int[] drawImageToBuffer(Object gOffscreen,
Object imageOffscreen,
Object imageobj,
int width,
int height,
int bgcolor)
renderOffScreen
static void renderOffScreen(String text,
Font3D font3d,
Object gObj,
int mapWidth,
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 Graphics getStaticGraphics(Object image,
boolean backgroundTransparent)
- Parameters:
image - backgroundTransparent -
- Returns:
- Graphics object
getGraphics
static Object getGraphics(Object image)
drawImage
static void drawImage(Object g,
Object img,
int x,
int y)
flush
static void flush(Object image)
disposeGraphics
static void disposeGraphics(Object g)