public class Platform extends Platform
| Constructor and Description |
|---|
Platform() |
| Modifier and Type | Method and Description |
|---|---|
Object |
allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent,
boolean isImageWrite) |
void |
disposeGraphics(Object gOffscreen) |
void |
drawImage(Object g,
Object img,
int x,
int y,
int width,
int height) |
int[] |
drawImageToBuffer(Object gOffscreen,
Object imageOffscreen,
Object imageobj,
int width,
int height,
int bgcolor) |
void |
flushImage(Object imagePixelBuffer) |
int |
fontStringWidth(javajs.awt.Font font,
String text) |
int |
getFontAscent(Object fontMetrics) |
int |
getFontDescent(Object fontMetrics) |
Object |
getFontMetrics(javajs.awt.Font font,
Object graphics) |
Object |
getGraphics(Object image) |
Object |
getStaticGraphics(Object image,
boolean backgroundTransparent) |
int[] |
getTextPixels(String text,
javajs.awt.Font font3d,
Object gObj,
Object image,
int width,
int height,
int ascent) |
int[] |
grabPixels(Object imageobj,
int width,
int height,
int[] pixels,
int startRow,
int nRows) |
Object |
newBufferedImage(Object image,
int w,
int h) |
Object |
newFont(String fontFace,
boolean isBold,
boolean isItalic,
float fontSize) |
Object |
newOffScreenImage(int w,
int h) |
convertPointFromScreen, createImage, getBufferedFileInputStream, getBufferedURLInputStream, getDateFormat, getFullScreenDimensions, getImageHeight, getImageWidth, getJsObjectInfo, getLocalUrl, getMenuPopup, getMouseManager, hasFocus, isHeadless, isSingleThreaded, newFile, notifyEndOfRendering, prompt, renderScreenImage, repaint, requestFocusInWindow, setCursor, setTransparentCursor, setViewer, waitForDisplaypublic Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent, boolean isImageWrite)
allocateRgbImage in interface javajs.api.GenericPlatformallocateRgbImage in class Platformpublic void disposeGraphics(Object gOffscreen)
disposeGraphics in interface javajs.api.GenericPlatformdisposeGraphics in class Platformpublic int[] grabPixels(Object imageobj, int width, int height, int[] pixels, int startRow, int nRows)
grabPixels in interface javajs.api.GenericPlatformgrabPixels in class Platformpublic int[] drawImageToBuffer(Object gOffscreen, Object imageOffscreen, Object imageobj, int width, int height, int bgcolor)
drawImageToBuffer in interface javajs.api.GenericPlatformdrawImageToBuffer in class Platformpublic int[] getTextPixels(String text, javajs.awt.Font font3d, Object gObj, Object image, int width, int height, int ascent)
getTextPixels in interface javajs.api.GenericPlatformgetTextPixels in class Platformpublic void flushImage(Object imagePixelBuffer)
flushImage in interface javajs.api.GenericPlatformflushImage in class Platformpublic Object getGraphics(Object image)
getGraphics in interface javajs.api.GenericPlatformgetGraphics in class Platformpublic Object getStaticGraphics(Object image, boolean backgroundTransparent)
getStaticGraphics in interface javajs.api.GenericPlatformgetStaticGraphics in class Platformpublic Object newBufferedImage(Object image, int w, int h)
newBufferedImage in interface javajs.api.GenericPlatformnewBufferedImage in class Platformpublic Object newOffScreenImage(int w, int h)
newOffScreenImage in interface javajs.api.GenericPlatformnewOffScreenImage in class Platformpublic int fontStringWidth(javajs.awt.Font font,
String text)
fontStringWidth in interface javajs.api.FontManagerfontStringWidth in class Platformpublic int getFontAscent(Object fontMetrics)
getFontAscent in interface javajs.api.FontManagergetFontAscent in class Platformpublic int getFontDescent(Object fontMetrics)
getFontDescent in interface javajs.api.FontManagergetFontDescent in class Platformpublic Object getFontMetrics(javajs.awt.Font font, Object graphics)
getFontMetrics in interface javajs.api.FontManagergetFontMetrics in class Platform