public class Platform extends Platform
| Constructor and Description |
|---|
Platform() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent,
boolean isImageWrite) |
void |
disposeGraphics(java.lang.Object gOffscreen) |
void |
drawImage(java.lang.Object g,
java.lang.Object img,
int x,
int y,
int width,
int height) |
int[] |
drawImageToBuffer(java.lang.Object gOffscreen,
java.lang.Object imageOffscreen,
java.lang.Object imageobj,
int width,
int height,
int bgcolor) |
void |
flushImage(java.lang.Object imagePixelBuffer) |
int |
fontStringWidth(JmolFont font,
java.lang.Object fontMetrics,
java.lang.String text) |
int |
getFontAscent(java.lang.Object fontMetrics) |
int |
getFontDescent(java.lang.Object fontMetrics) |
java.lang.Object |
getFontMetrics(JmolFont font,
java.lang.Object graphics) |
java.lang.Object |
getGraphics(java.lang.Object image) |
java.lang.Object |
getStaticGraphics(java.lang.Object image,
boolean backgroundTransparent) |
int[] |
getTextPixels(java.lang.String text,
JmolFont font3d,
java.lang.Object gObj,
java.lang.Object image,
int width,
int height,
int ascent) |
int[] |
grabPixels(java.lang.Object imageobj,
int width,
int height,
int[] pixels,
int startRow,
int nRows) |
java.lang.Object |
newBufferedImage(java.lang.Object image,
int w,
int h) |
java.lang.Object |
newFont(java.lang.String fontFace,
boolean isBold,
boolean isItalic,
float fontSize) |
java.lang.Object |
newOffScreenImage(int w,
int h) |
convertPointFromScreen, createImage, getDateFormat, getFileAdapter, getFullScreenDimensions, getImageHeight, getImageWidth, getJpgImage, getJsObjectInfo, getMenuPopup, getMouseManager, hasFocus, isHeadless, isSingleThreaded, newFile, notifyEndOfRendering, prompt, renderScreenImage, repaint, requestFocusInWindow, setCursor, setTransparentCursor, setViewer, waitForDisplaypublic java.lang.Object allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent,
boolean isImageWrite)
allocateRgbImage in interface ApiPlatformallocateRgbImage in class Platformpublic void disposeGraphics(java.lang.Object gOffscreen)
disposeGraphics in interface ApiPlatformdisposeGraphics in class Platformpublic void drawImage(java.lang.Object g,
java.lang.Object img,
int x,
int y,
int width,
int height)
drawImage in interface ApiPlatformdrawImage in class Platformpublic int[] grabPixels(java.lang.Object imageobj,
int width,
int height,
int[] pixels,
int startRow,
int nRows)
grabPixels in interface ApiPlatformgrabPixels in class Platformpublic int[] drawImageToBuffer(java.lang.Object gOffscreen,
java.lang.Object imageOffscreen,
java.lang.Object imageobj,
int width,
int height,
int bgcolor)
drawImageToBuffer in interface ApiPlatformdrawImageToBuffer in class Platformpublic int[] getTextPixels(java.lang.String text,
JmolFont font3d,
java.lang.Object gObj,
java.lang.Object image,
int width,
int height,
int ascent)
getTextPixels in interface ApiPlatformgetTextPixels in class Platformpublic void flushImage(java.lang.Object imagePixelBuffer)
flushImage in interface ApiPlatformflushImage in class Platformpublic java.lang.Object getGraphics(java.lang.Object image)
getGraphics in interface ApiPlatformgetGraphics in class Platformpublic java.lang.Object getStaticGraphics(java.lang.Object image,
boolean backgroundTransparent)
getStaticGraphics in interface ApiPlatformgetStaticGraphics in class Platformpublic java.lang.Object newBufferedImage(java.lang.Object image,
int w,
int h)
newBufferedImage in interface ApiPlatformnewBufferedImage in class Platformpublic java.lang.Object newOffScreenImage(int w,
int h)
newOffScreenImage in interface ApiPlatformnewOffScreenImage in class Platformpublic int fontStringWidth(JmolFont font, java.lang.Object fontMetrics, java.lang.String text)
fontStringWidth in interface ApiPlatformfontStringWidth in class Platformpublic int getFontAscent(java.lang.Object fontMetrics)
getFontAscent in interface ApiPlatformgetFontAscent in class Platformpublic int getFontDescent(java.lang.Object fontMetrics)
getFontDescent in interface ApiPlatformgetFontDescent in class Platformpublic java.lang.Object getFontMetrics(JmolFont font, java.lang.Object graphics)
getFontMetrics in interface ApiPlatformgetFontMetrics in class Platformpublic java.lang.Object newFont(java.lang.String fontFace,
boolean isBold,
boolean isItalic,
float fontSize)
newFont in interface ApiPlatformnewFont in class Platform