Package org.jmol.awtjs
Class Platform
- java.lang.Object
-
- org.jmol.awtjs2d.Platform
-
- org.jmol.awtjs.Platform
-
- All Implemented Interfaces:
javajs.api.FontManager
,javajs.api.GenericPlatform
public class Platform extends Platform
WebGL interface- Author:
- Bob Hanson
-
-
Constructor Summary
Constructors Constructor Description Platform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
drawImage(java.lang.Object g, java.lang.Object img, int x, int y, int width, int height, boolean isDTI)
java.lang.Object
getGraphics(java.lang.Object image)
java.lang.Object
getStaticGraphics(java.lang.Object image, boolean backgroundTransparent)
int[]
getTextPixels(java.lang.String text, javajs.awt.Font font3d, java.lang.Object gObj, java.lang.Object image, int width, int height, int ascent)
java.lang.Object
newBufferedImage(java.lang.Object image, int w, int h)
java.lang.Object
newOffScreenImage(int w, int h)
-
Methods inherited from class org.jmol.awtjs2d.Platform
allocateRgbImage, convertPointFromScreen, createImage, disposeGraphics, drawImageToBuffer, flushImage, fontStringWidth, forceAsyncLoad, getBufferedFileInputStream, getDateFormat, getFontAscent, getFontDescent, getFontMetrics, getFullScreenDimensions, getImageDialog, getImageHeight, getImageWidth, getJsObjectInfo, getLocalUrl, getMenuPopup, getMouseManager, getURLContents, getURLContentsStatic, grabPixels, hasFocus, isHeadless, isSingleThreaded, Jmol, newFile, newFont, notifyEndOfRendering, prompt, renderScreenImage, repaint, requestFocusInWindow, setCursor, setTransparentCursor, setViewer, waitForDisplay
-
-
-
-
Method Detail
-
drawImage
public void drawImage(java.lang.Object g, java.lang.Object img, int x, int y, int width, int height, boolean isDTI)
-
getTextPixels
public int[] getTextPixels(java.lang.String text, javajs.awt.Font font3d, java.lang.Object gObj, java.lang.Object image, int width, int height, int ascent)
- Specified by:
getTextPixels
in interfacejavajs.api.GenericPlatform
- Overrides:
getTextPixels
in classPlatform
-
getGraphics
public java.lang.Object getGraphics(java.lang.Object image)
- Specified by:
getGraphics
in interfacejavajs.api.GenericPlatform
- Overrides:
getGraphics
in classPlatform
-
getStaticGraphics
public java.lang.Object getStaticGraphics(java.lang.Object image, boolean backgroundTransparent)
- Specified by:
getStaticGraphics
in interfacejavajs.api.GenericPlatform
- Overrides:
getStaticGraphics
in classPlatform
-
newBufferedImage
public java.lang.Object newBufferedImage(java.lang.Object image, int w, int h)
- Specified by:
newBufferedImage
in interfacejavajs.api.GenericPlatform
- Overrides:
newBufferedImage
in classPlatform
-
newOffScreenImage
public java.lang.Object newOffScreenImage(int w, int h)
- Specified by:
newOffScreenImage
in interfacejavajs.api.GenericPlatform
- Overrides:
newOffScreenImage
in classPlatform
-
-