Package org.jmol.api
Interface GenericPlatform
-
- All Superinterfaces:
FontManager
public interface GenericPlatform extends FontManager
-
-
Field Summary
Fields Modifier and Type Field Description static intCURSOR_CROSSHAIRstatic intCURSOR_DEFAULTstatic intCURSOR_HANDstatic intCURSOR_MOVEstatic intCURSOR_WAITstatic intCURSOR_ZOOM
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ObjectallocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent, boolean isImageWrite)voidconvertPointFromScreen(Object display, javajs.util.P3 ptTemp)ObjectcreateImage(Object ret)can be ignored (return null) if platform cannot save imagesvoiddisposeGraphics(Object graphicForText)voiddrawImage(Object g, Object img, int x, int y, int width, int height, boolean isDTI)int[]drawImageToBuffer(Object gObj, Object imageOffscreen, Object image, int width, int height, int bgcolor)voidflushImage(Object imagePixelBuffer)booleanforceAsyncLoad(String filename)ObjectgetBufferedFileInputStream(String name)StringgetDateFormat(String isoType)voidgetFullScreenDimensions(Object display, int[] widthHeight)ObjectgetGraphics(Object image)GenericImageDialoggetImageDialog(String title, Map<String,GenericImageDialog> imageMap)intgetImageHeight(Object image)intgetImageWidth(Object image)ObjectgetJsObjectInfo(Object[] jsObject, String method, Object[] args)StringgetLocalUrl(String fileName)GenericMenuInterfacegetMenuPopup(String menuStructure, char type)GenericMouseInterfacegetMouseManager(double privateKey, Object display)ObjectgetStaticGraphics(Object image, boolean backgroundTransparent)int[]getTextPixels(String text, Font font3d, Object gObj, Object image, int mapWidth, int height, int ascent)ObjectgetURLContents(URL url, byte[] outputBytes, String post, boolean asString)int[]grabPixels(Object image, int width, int height, int[] pixels, int startRow, int nRows)booleanhasFocus(Object display)booleanisHeadless()booleanisSingleThreaded()ObjectnewBufferedImage(Object image, int i, int height)GenericFileInterfacenewFile(String name)ObjectnewOffScreenImage(int w, int h)voidnotifyEndOfRendering()Stringprompt(String label, String data, String[] list, boolean asButtons)voidrenderScreenImage(Object g, Object currentSize)Deprecated.voidrepaint(Object display)voidrequestFocusInWindow(Object display)voidsetCursor(int i, Object display)voidsetTransparentCursor(Object display)voidsetViewer(PlatformViewer vwr, Object display)booleanwaitForDisplay(Object boolIsEcho, Object image)can be ignored (return false) if platform cannot save images-
Methods inherited from interface org.jmol.api.FontManager
fontStringWidth, getFontAscent, getFontDescent, getFontMetrics, newFont
-
-
-
-
Field Detail
-
CURSOR_DEFAULT
static final int CURSOR_DEFAULT
- See Also:
- Constant Field Values
-
CURSOR_CROSSHAIR
static final int CURSOR_CROSSHAIR
- See Also:
- Constant Field Values
-
CURSOR_WAIT
static final int CURSOR_WAIT
- See Also:
- Constant Field Values
-
CURSOR_ZOOM
static final int CURSOR_ZOOM
- See Also:
- Constant Field Values
-
CURSOR_HAND
static final int CURSOR_HAND
- See Also:
- Constant Field Values
-
CURSOR_MOVE
static final int CURSOR_MOVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setViewer
void setViewer(PlatformViewer vwr, Object display)
-
isHeadless
boolean isHeadless()
-
convertPointFromScreen
void convertPointFromScreen(Object display, javajs.util.P3 ptTemp)
-
getFullScreenDimensions
void getFullScreenDimensions(Object display, int[] widthHeight)
-
hasFocus
boolean hasFocus(Object display)
-
repaint
void repaint(Object display)
-
requestFocusInWindow
void requestFocusInWindow(Object display)
-
setCursor
void setCursor(int i, Object display)
-
setTransparentCursor
void setTransparentCursor(Object display)
-
getMouseManager
GenericMouseInterface getMouseManager(double privateKey, Object display)
-
allocateRgbImage
Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent, boolean isImageWrite)
-
disposeGraphics
void disposeGraphics(Object graphicForText)
-
drawImageToBuffer
int[] drawImageToBuffer(Object gObj, Object imageOffscreen, Object image, int width, int height, int bgcolor)
-
flushImage
void flushImage(Object imagePixelBuffer)
-
getImageWidth
int getImageWidth(Object image)
-
getImageHeight
int getImageHeight(Object image)
-
newOffScreenImage
Object newOffScreenImage(int w, int h)
-
renderScreenImage
@Deprecated void renderScreenImage(Object g, Object currentSize)
Deprecated.
-
getTextPixels
int[] getTextPixels(String text, Font font3d, Object gObj, Object image, int mapWidth, int height, int ascent)
-
createImage
Object createImage(Object ret)
can be ignored (return null) if platform cannot save images- Parameters:
ret-- Returns:
- null only if this platform cannot save images
-
grabPixels
int[] grabPixels(Object image, int width, int height, int[] pixels, int startRow, int nRows)
- Parameters:
image-width-height-pixels-startRow-nRows-- Returns:
- pixels
-
waitForDisplay
boolean waitForDisplay(Object boolIsEcho, Object image) throws InterruptedException
can be ignored (return false) if platform cannot save images- Parameters:
boolIsEcho-image-- Returns:
- false only if this platform cannot save images
- Throws:
InterruptedException
-
getMenuPopup
GenericMenuInterface getMenuPopup(String menuStructure, char type)
-
isSingleThreaded
boolean isSingleThreaded()
-
notifyEndOfRendering
void notifyEndOfRendering()
-
newFile
GenericFileInterface newFile(String name)
-
getURLContents
Object getURLContents(URL url, byte[] outputBytes, String post, boolean asString)
- Parameters:
url-outputBytes-post-asString-- Returns:
- may be javajs.util.SB or byte[] or java.io.InputStream
-
getImageDialog
GenericImageDialog getImageDialog(String title, Map<String,GenericImageDialog> imageMap)
-
forceAsyncLoad
boolean forceAsyncLoad(String filename)
-
-