Package org.jmol.api
Interface GenericPlatform
- All Superinterfaces:
FontManager
- All Known Implementing Classes:
AwtPlatform
,JsPlatform
,Platform
,Platform
,Platform
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionallocateRgbImage
(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent, boolean isImageWrite) int
void
convertPointFromScreen
(Object display, P3 ptTemp) createImage
(Object ret) can be ignored (return null) if platform cannot save imagesvoid
disposeGraphics
(Object graphicForText) void
int[]
drawImageToBuffer
(Object gObj, Object imageOffscreen, Object image, int width, int height, int bgcolor) void
flushImage
(Object imagePixelBuffer) boolean
forceAsyncLoad
(String filename) getDateFormat
(String isoType) void
getFullScreenDimensions
(Object display, int[] widthHeight) getGraphics
(Object image) getImageDialog
(String title, Map<String, GenericImageDialog> imageMap) int
getImageHeight
(Object image) int
getImageWidth
(Object image) getInChI()
getJsObjectInfo
(Object[] jsObject, String method, Object[] args) getLocalUrl
(String fileName) getMenuPopup
(String menuStructure, char type) getMouseManager
(double privateKey, Object display) getStaticGraphics
(Object image, boolean backgroundTransparent) int[]
getTextPixels
(String text, Font font3d, Object gObj, Object image, int mapWidth, int height, int ascent) getURLContents
(URL url, byte[] outputBytes, String post, boolean asString) int[]
grabPixels
(Object image, int width, int height, int[] pixels) boolean
boolean
boolean
newBufferedImage
(Object image, int i, int height) newOffScreenImage
(int w, int h) void
void
renderScreenImage
(Object g, Object currentSize) Deprecated.void
void
requestFocusInWindow
(Object display) void
void
setTransparentCursor
(Object display) void
setViewer
(PlatformViewer vwr, Object display) boolean
waitForDisplay
(Object boolIsEcho, Object image) can be ignored (return false) if platform cannot save imagesMethods inherited from interface org.jmol.api.FontManager
fontStringWidth, getFontAscent, getFontDescent, getFontMetrics, newFont
-
Field Details
-
CURSOR_DEFAULT
static final int CURSOR_DEFAULT- See Also:
-
CURSOR_CROSSHAIR
static final int CURSOR_CROSSHAIR- See Also:
-
CURSOR_WAIT
static final int CURSOR_WAIT- See Also:
-
CURSOR_ZOOM
static final int CURSOR_ZOOM- See Also:
-
CURSOR_HAND
static final int CURSOR_HAND- See Also:
-
CURSOR_MOVE
static final int CURSOR_MOVE- See Also:
-
-
Method Details
-
setViewer
-
isHeadless
boolean isHeadless() -
convertPointFromScreen
-
getFullScreenDimensions
-
hasFocus
-
prompt
-
repaint
-
requestFocusInWindow
-
setCursor
-
setTransparentCursor
-
getMouseManager
-
allocateRgbImage
Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent, boolean isImageWrite) -
disposeGraphics
-
drawImage
-
drawImageToBuffer
-
flushImage
-
getStaticGraphics
-
getGraphics
-
getImageWidth
-
getImageHeight
-
newBufferedImage
-
newOffScreenImage
-
renderScreenImage
Deprecated. -
getTextPixels
-
createImage
can be ignored (return null) if platform cannot save images- Parameters:
ret
-- Returns:
- null only if this platform cannot save images
-
grabPixels
- Parameters:
image
-width
-height
-pixels
-- Returns:
- pixels
-
waitForDisplay
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
-
getJsObjectInfo
-
isSingleThreaded
boolean isSingleThreaded() -
notifyEndOfRendering
void notifyEndOfRendering() -
getDateFormat
-
newFile
-
getBufferedFileInputStream
-
getURLContents
- Parameters:
url
-outputBytes
-post
-asString
-- Returns:
- may be javajs.util.SB or byte[] or java.io.InputStream
-
getLocalUrl
-
getImageDialog
-
forceAsyncLoad
-
getInChI
Object getInChI() -
confirm
-