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 voiddrawImage(java.lang.Object g, java.lang.Object img, int x, int y, int width, int height, boolean isDTI)java.lang.ObjectgetGraphics(java.lang.Object image)java.lang.ObjectgetStaticGraphics(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.ObjectnewBufferedImage(java.lang.Object image, int w, int h)java.lang.ObjectnewOffScreenImage(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:
getTextPixelsin interfacejavajs.api.GenericPlatform- Overrides:
getTextPixelsin classPlatform
-
getGraphics
public java.lang.Object getGraphics(java.lang.Object image)
- Specified by:
getGraphicsin interfacejavajs.api.GenericPlatform- Overrides:
getGraphicsin classPlatform
-
getStaticGraphics
public java.lang.Object getStaticGraphics(java.lang.Object image, boolean backgroundTransparent)- Specified by:
getStaticGraphicsin interfacejavajs.api.GenericPlatform- Overrides:
getStaticGraphicsin classPlatform
-
newBufferedImage
public java.lang.Object newBufferedImage(java.lang.Object image, int w, int h)- Specified by:
newBufferedImagein interfacejavajs.api.GenericPlatform- Overrides:
newBufferedImagein classPlatform
-
newOffScreenImage
public java.lang.Object newOffScreenImage(int w, int h)- Specified by:
newOffScreenImagein interfacejavajs.api.GenericPlatform- Overrides:
newOffScreenImagein classPlatform
-
-