Package org.jmol.awtjs
Class Platform
java.lang.Object
org.jmol.awtjs2d.Platform
org.jmol.awtjs.Platform
- All Implemented Interfaces:
FontManager,GenericPlatform
WebGL interface
- Author:
- Bob Hanson
-
Field Summary
Fields inherited from interface org.jmol.api.GenericPlatform
CURSOR_CROSSHAIR, CURSOR_DEFAULT, CURSOR_HAND, CURSOR_MOVE, CURSOR_WAIT, CURSOR_ZOOM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetGraphics(Object image) getStaticGraphics(Object image, boolean backgroundTransparent) int[]getTextPixels(String text, Font font3d, Object gObj, Object image, int width, int height, int ascent) newBufferedImage(Object image, int w, int h) newOffScreenImage(int w, int h) Methods inherited from class org.jmol.awtjs2d.Platform
allocateRgbImage, confirm, convertPointFromScreen, createImage, disposeGraphics, drawImageToBuffer, flushImage, fontStringWidth, forceAsyncLoad, getBufferedFileInputStream, getDateFormat, getFontAscent, getFontDescent, getFontMetrics, getFullScreenDimensions, getImageDialog, getImageHeight, getImageWidth, getInChI, getJsObjectInfo, getLocalUrl, getMenuPopup, getMouseManager, getURLContents, getURLContentsStatic, grabPixels, hasFocus, isHeadless, isSingleThreaded, Jmol, newFile, newFont, notifyEndOfRendering, prompt, renderScreenImage, repaint, requestFocusInWindow, setCursor, setTransparentCursor, setViewer, waitForDisplay
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
drawImage
- Specified by:
drawImagein interfaceGenericPlatform- Overrides:
drawImagein classPlatform
-
getTextPixels
public int[] getTextPixels(String text, Font font3d, Object gObj, Object image, int width, int height, int ascent) - Specified by:
getTextPixelsin interfaceGenericPlatform- Overrides:
getTextPixelsin classPlatform
-
getGraphics
- Specified by:
getGraphicsin interfaceGenericPlatform- Overrides:
getGraphicsin classPlatform
-
getStaticGraphics
- Specified by:
getStaticGraphicsin interfaceGenericPlatform- Overrides:
getStaticGraphicsin classPlatform
-
newBufferedImage
- Specified by:
newBufferedImagein interfaceGenericPlatform- Overrides:
newBufferedImagein classPlatform
-
newOffScreenImage
- Specified by:
newOffScreenImagein interfaceGenericPlatform- Overrides:
newOffScreenImagein classPlatform
-