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 TypeMethodDescriptionvoid
getGraphics
(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:
drawImage
in interfaceGenericPlatform
- Overrides:
drawImage
in classPlatform
-
getTextPixels
public int[] getTextPixels(String text, Font font3d, Object gObj, Object image, int width, int height, int ascent) - Specified by:
getTextPixels
in interfaceGenericPlatform
- Overrides:
getTextPixels
in classPlatform
-
getGraphics
- Specified by:
getGraphics
in interfaceGenericPlatform
- Overrides:
getGraphics
in classPlatform
-
getStaticGraphics
- Specified by:
getStaticGraphics
in interfaceGenericPlatform
- Overrides:
getStaticGraphics
in classPlatform
-
newBufferedImage
- Specified by:
newBufferedImage
in interfaceGenericPlatform
- Overrides:
newBufferedImage
in classPlatform
-
newOffScreenImage
- Specified by:
newOffScreenImage
in interfaceGenericPlatform
- Overrides:
newOffScreenImage
in classPlatform
-