Package javajs.api
Interface JSInterface
- All Known Implementing Classes:
GenericApplet
,Jmol
,JSVApplet
,JSVAppletPro
public interface JSInterface
called by JSmol JavaScript methods using
this._applet.xxxx()
-
Method Summary
Modifier and TypeMethodDescriptionint
cacheFileByName
(String fileName, boolean isAdd) void
void
destroy()
void
openFileAsyncSpecial
(String fileName, int flags) void
openFileAsyncSpecialType
(String fileName, int flags, String type) void
processKeyEvent
(Object event) boolean
processMouseEvent
(int id, int x, int y, int modifiers, long time) void
processTwoPointGesture
(float[][][] touches) void
setDisplay
(Object canvas) void
setScreenDimension
(int width, int height) boolean
setStatusDragDropped
(int mode, int x, int y, String fileName, String[] retType) void
startHoverWatcher
(boolean enable) void
update()
-
Method Details
-
cacheFileByName
-
cachePut
-
destroy
void destroy() -
getFullName
String getFullName() -
openFileAsyncSpecial
-
openFileAsyncSpecialType
-
processMouseEvent
boolean processMouseEvent(int id, int x, int y, int modifiers, long time) -
processKeyEvent
-
processTwoPointGesture
void processTwoPointGesture(float[][][] touches) -
setDisplay
-
setScreenDimension
void setScreenDimension(int width, int height) -
setStatusDragDropped
-
startHoverWatcher
void startHoverWatcher(boolean enable) -
update
void update()
-