Class Jmol

    • Field Detail

      • htParams

        private java.util.Map<java.lang.String,​java.lang.Object> htParams
    • Constructor Detail

      • Jmol

        public Jmol​(java.util.Map<java.lang.String,​java.lang.Object> vwrOptions)
        cannot ignore super because it involves preparing fields
        Parameters:
        vwrOptions -
    • Method Detail

      • getJmolParameter

        protected java.lang.String getJmolParameter​(java.lang.String paramName)
        Specified by:
        getJmolParameter in class GenericApplet
      • doFunctionXY

        protected float[][] doFunctionXY​(java.lang.String functionName,
                                         int nX,
                                         int nY)
        Specified by:
        doFunctionXY in class GenericApplet
      • doFunctionXYZ

        protected float[][][] doFunctionXYZ​(java.lang.String functionName,
                                            int nX,
                                            int nY,
                                            int nZ)
        Specified by:
        doFunctionXYZ in class GenericApplet
      • doSendCallback

        protected java.lang.String doSendCallback​(java.lang.String callback,
                                                  java.lang.Object[] data,
                                                  java.lang.String strInfo)
        Specified by:
        doSendCallback in class GenericApplet
      • doEval

        protected java.lang.String doEval​(java.lang.String strEval)
        return RAW JAVASCRIPT OBJECT, NOT A STRING
        Specified by:
        doEval in class GenericApplet
      • doShowStatus

        protected void doShowStatus​(java.lang.String message)
        Specified by:
        doShowStatus in class GenericApplet
      • getGLmolView

        public java.lang.Object getGLmolView()
        This method is only called by JmolGLmol applet._refresh();
        Returns:
        enough data to update a WebGL view
      • openFile

        public java.lang.String openFile​(java.lang.String fileName)
        possibly called from JSmolApplet.js upon start up
        Parameters:
        fileName -
        Returns:
        error or null
      • cacheFileByName

        public int cacheFileByName​(java.lang.String fileName,
                                   boolean isAdd)
        Specified by:
        cacheFileByName in interface javajs.api.JSInterface
      • cachePut

        public void cachePut​(java.lang.String key,
                             java.lang.Object data)
        Specified by:
        cachePut in interface javajs.api.JSInterface
      • getFullName

        public java.lang.String getFullName()
        Specified by:
        getFullName in interface javajs.api.JSInterface
      • processMouseEvent

        public boolean processMouseEvent​(int id,
                                         int x,
                                         int y,
                                         int modifiers,
                                         long time)
        Specified by:
        processMouseEvent in interface javajs.api.JSInterface
      • setDisplay

        public void setDisplay​(java.lang.Object canvas)
        Specified by:
        setDisplay in interface javajs.api.JSInterface
      • setStatusDragDropped

        public boolean setStatusDragDropped​(int mode,
                                            int x,
                                            int y,
                                            java.lang.String fileName)
        Specified by:
        setStatusDragDropped in interface javajs.api.JSInterface
      • startHoverWatcher

        public void startHoverWatcher​(boolean enable)
        Specified by:
        startHoverWatcher in interface javajs.api.JSInterface
      • update

        public void update()
        Specified by:
        update in interface javajs.api.JSInterface
      • openFileAsyncSpecial

        public void openFileAsyncSpecial​(java.lang.String fileName,
                                         int flags)
        Specified by:
        openFileAsyncSpecial in interface javajs.api.JSInterface
      • processTwoPointGesture

        public void processTwoPointGesture​(float[][][] touches)
        Specified by:
        processTwoPointGesture in interface javajs.api.JSInterface
      • setScreenDimension

        public void setScreenDimension​(int width,
                                       int height)
        Specified by:
        setScreenDimension in interface javajs.api.JSInterface
      • resizeDisplay

        void resizeDisplay​(int width,
                           int height)