Package org.jmol.api

Interface GenericPlatform

    • Method Detail

      • 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)
      • allocateRgbImage

        Object allocateRgbImage​(int windowWidth,
                                int windowHeight,
                                int[] pBuffer,
                                int windowSize,
                                boolean backgroundTransparent,
                                boolean isImageWrite)
      • disposeGraphics

        void disposeGraphics​(Object graphicForText)
      • drawImage

        void drawImage​(Object g,
                       Object img,
                       int x,
                       int y,
                       int width,
                       int height,
                       boolean isDTI)
      • drawImageToBuffer

        int[] drawImageToBuffer​(Object gObj,
                                Object imageOffscreen,
                                Object image,
                                int width,
                                int height,
                                int bgcolor)
      • flushImage

        void flushImage​(Object imagePixelBuffer)
      • getStaticGraphics

        Object getStaticGraphics​(Object image,
                                 boolean backgroundTransparent)
      • getImageWidth

        int getImageWidth​(Object image)
      • getImageHeight

        int getImageHeight​(Object image)
      • newBufferedImage

        Object newBufferedImage​(Object image,
                                int i,
                                int height)
      • newOffScreenImage

        Object newOffScreenImage​(int w,
                                 int h)
      • 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
      • isSingleThreaded

        boolean isSingleThreaded()
      • notifyEndOfRendering

        void notifyEndOfRendering()
      • getBufferedFileInputStream

        Object getBufferedFileInputStream​(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
      • forceAsyncLoad

        boolean forceAsyncLoad​(String filename)