public abstract class GenericApplet extends Object implements JmolAppletInterface, JmolStatusListener
Modifier and Type | Field and Description |
---|---|
protected Object |
appletObject |
protected Map<EnumCallback,String> |
callbacks |
protected String |
codeBase |
protected String |
documentBase |
protected boolean |
doTranslate |
protected String |
fullName |
protected Object |
gRight |
protected boolean |
haveDocumentAccess |
protected boolean |
haveNotifiedError |
protected String |
htmlName |
protected static Map<String,Object> |
htRegistry |
protected boolean |
isJNLP |
protected boolean |
isJS |
protected boolean |
isSigned |
protected boolean |
isStereoSlave |
protected String |
language |
private boolean |
loading |
protected boolean |
mayScript |
private javajs.util.SB |
outputBuffer |
private static int |
SCRIPT_CHECK |
private static int |
SCRIPT_NOWAIT |
private static int |
SCRIPT_WAIT |
protected String |
statusForm |
protected String |
statusText |
protected String |
statusTextarea |
private String |
syncId |
protected JmolViewer |
viewer |
protected Map<String,Object> |
viewerOptions |
Constructor and Description |
---|
GenericApplet() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkIn(String name,
Object applet) |
(package private) static void |
checkOut(String name) |
private void |
consoleMessage(String message) |
String |
createImage(String fileName,
String type,
Object text_or_bytes,
int quality)
Starting with Jmol 11.8.RC5, for a context where the Jmol application
is embedded in another application simply to send the returned message
to the application.
|
void |
destroy() |
protected abstract String |
doEval(String strEval) |
protected abstract float[][] |
doFunctionXY(String functionName,
int nX,
int nY) |
protected abstract float[][][] |
doFunctionXYZ(String functionName,
int nX,
int nY,
int nZ) |
protected abstract String |
doSendCallback(String callback,
Object[] data,
String strInfo) |
protected abstract void |
doSendJsTextareaStatus(String strInfo) |
protected abstract void |
doSendJsTextStatus(String message) |
protected abstract void |
doShowDocument(URL url) |
protected abstract void |
doShowStatus(String errorMsg) |
String |
eval(String strEval) |
(package private) static void |
findApplets(String appletName,
String mySyncId,
String excludeName,
javajs.util.List<String> apps) |
float[][] |
functionXY(String functionName,
int nX,
int nY)
for isosurface FUNCTIONXY
|
float[][][] |
functionXYZ(String functionName,
int nX,
int nY,
int nZ)
for isosurface FUNCTIONXYZ
|
String |
getAppletInfo() |
protected boolean |
getBooleanValue(String propertyName,
boolean defaultValue) |
Map<String,Object> |
getJSpecViewProperty(String key)
JSpecView shares the JmolSyncInterface; used to get JSpecView
|
protected abstract String |
getParameter(String name) |
Object |
getProperty(String infoType) |
Object |
getProperty(String infoType,
String paramInfo) |
String |
getPropertyAsJSON(String infoType) |
String |
getPropertyAsJSON(String infoType,
String paramInfo) |
String |
getPropertyAsString(String infoType) |
String |
getPropertyAsString(String infoType,
String paramInfo) |
Map<String,Object> |
getRegistryInfo() |
protected String |
getValue(String propertyName,
String defaultValue) |
private String |
getValueLowerCase(String paramName,
String defaultValue) |
boolean |
handleEvent(Event e) |
protected void |
init(Object applet) |
private void |
initApplication() |
protected abstract void |
initOptions() |
String |
loadDOMNode(Object DOMNode) |
String |
loadInline(String strModel)
Deprecated.
|
String |
loadInline(String[] strModels)
Deprecated.
|
String |
loadInline(String[] strModels,
String script)
Deprecated.
|
String |
loadInline(String strModel,
String script)
Deprecated.
|
String |
loadInlineArray(String[] strModels,
String script,
boolean isAppend) |
String |
loadInlineString(String strModel,
String script,
boolean isAppend) |
void |
notifyCallback(EnumCallback type,
Object[] data) |
boolean |
notifyEnabled(EnumCallback type) |
private void |
notifyStructureModified(int modelIndex,
int mode) |
private String |
notifySync(String info,
String appletName) |
void |
output(String s) |
void |
register(String id,
JmolSyncInterface jsi) |
javajs.awt.Dimension |
resizeInnerPanel(String data) |
void |
script(String script) |
String |
scriptCheck(String script) |
String |
scriptNoWait(String script) |
private String |
scriptProcessor(String script,
String statusParams,
int processType) |
String |
scriptWait(String script) |
String |
scriptWait(String script,
String statusParams) |
String |
scriptWaitOutput(String script) |
private String |
sendScript(String script,
String appletName,
boolean isSync,
boolean doCallback) |
void |
setCallbackFunction(String callbackName,
String callbackFunction) |
private void |
setStringProperty(String name,
String value) |
private void |
setValue(String name,
String defaultValue) |
void |
showUrl(String urlString) |
void |
syncScript(String script) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setStereoGraphics
protected boolean isJS
private static final int SCRIPT_CHECK
private static final int SCRIPT_WAIT
private static final int SCRIPT_NOWAIT
protected String codeBase
protected String documentBase
protected boolean isSigned
protected String language
protected boolean doTranslate
protected boolean haveDocumentAccess
protected boolean isStereoSlave
protected boolean mayScript
protected String htmlName
protected String fullName
protected String statusForm
protected String statusText
protected String statusTextarea
protected Object gRight
protected JmolViewer viewer
protected Map<EnumCallback,String> callbacks
protected boolean haveNotifiedError
protected Object appletObject
protected boolean isJNLP
private boolean loading
private String syncId
private javajs.util.SB outputBuffer
protected abstract void initOptions()
protected abstract float[][] doFunctionXY(String functionName, int nX, int nY)
protected abstract float[][][] doFunctionXYZ(String functionName, int nX, int nY, int nZ)
protected abstract String doSendCallback(String callback, Object[] data, String strInfo)
protected abstract void doSendJsTextareaStatus(String strInfo)
protected abstract void doSendJsTextStatus(String message)
protected abstract void doShowDocument(URL url)
protected abstract void doShowStatus(String errorMsg)
protected void init(Object applet)
private void initApplication()
public void destroy()
destroy
in interface JmolAppletInterface
protected boolean getBooleanValue(String propertyName, boolean defaultValue)
public void register(String id, JmolSyncInterface jsi)
register
in interface JmolSyncInterface
public Map<String,Object> getJSpecViewProperty(String key)
getJSpecViewProperty
in interface JmolStatusListener
getJSpecViewProperty
in interface JmolSyncInterface
public void syncScript(String script)
syncScript
in interface JmolSyncInterface
public boolean handleEvent(Event e)
handleEvent
in interface JmolAppletInterface
public String getAppletInfo()
getAppletInfo
in interface JmolAppletInterface
public void script(String script)
script
in interface JmolAppletInterface
public String scriptCheck(String script)
scriptCheck
in interface JmolAppletInterface
public String scriptNoWait(String script)
scriptNoWait
in interface JmolAppletInterface
public String scriptWait(String script)
scriptWait
in interface JmolAppletInterface
public String scriptWait(String script, String statusParams)
scriptWait
in interface JmolAppletInterface
public String scriptWaitOutput(String script)
scriptWaitOutput
in interface JmolAppletInterface
public Object getProperty(String infoType)
getProperty
in interface JmolAppletInterface
infoType
- public Object getProperty(String infoType, String paramInfo)
getProperty
in interface JmolAppletInterface
infoType
- paramInfo
- public String getPropertyAsString(String infoType)
getPropertyAsString
in interface JmolAppletInterface
infoType
- public String getPropertyAsString(String infoType, String paramInfo)
getPropertyAsString
in interface JmolAppletInterface
infoType
- paramInfo
- public String getPropertyAsJSON(String infoType)
getPropertyAsJSON
in interface JmolAppletInterface
infoType
- public String getPropertyAsJSON(String infoType, String paramInfo)
getPropertyAsJSON
in interface JmolAppletInterface
infoType
- paramInfo
- public String loadInlineString(String strModel, String script, boolean isAppend)
loadInlineString
in interface JmolAppletInterface
public String loadInlineArray(String[] strModels, String script, boolean isAppend)
loadInlineArray
in interface JmolAppletInterface
public String loadDOMNode(Object DOMNode)
loadDOMNode
in interface JmolAppletInterface
@Deprecated public String loadInline(String strModel)
loadInline
in interface JmolAppletInterface
strModel
- @Deprecated public String loadInline(String strModel, String script)
loadInline
in interface JmolAppletInterface
strModel
- script
- @Deprecated public String loadInline(String[] strModels)
loadInline
in interface JmolAppletInterface
strModels
- @Deprecated public String loadInline(String[] strModels, String script)
loadInline
in interface JmolAppletInterface
strModels
- script
- public void output(String s)
public void setCallbackFunction(String callbackName, String callbackFunction)
setCallbackFunction
in interface JmolCallbackListener
private void consoleMessage(String message)
public boolean notifyEnabled(EnumCallback type)
notifyEnabled
in interface JmolCallbackListener
public void notifyCallback(EnumCallback type, Object[] data)
notifyCallback
in interface JmolCallbackListener
private void notifyStructureModified(int modelIndex, int mode)
private String sendScript(String script, String appletName, boolean isSync, boolean doCallback)
public String eval(String strEval)
eval
in interface JmolStatusListener
public float[][] functionXY(String functionName, int nX, int nY)
JmolStatusListener
functionXY
in interface JmolStatusListener
public float[][][] functionXYZ(String functionName, int nX, int nY, int nZ)
JmolStatusListener
functionXYZ
in interface JmolStatusListener
public String createImage(String fileName, String type, Object text_or_bytes, int quality)
JmolStatusListener
createImage
in interface JmolStatusListener
text_or_bytes
- information or null indicates message AFTER Jmol creates the imagepublic Map<String,Object> getRegistryInfo()
getRegistryInfo
in interface JmolStatusListener
public void showUrl(String urlString)
showUrl
in interface JmolStatusListener
public javajs.awt.Dimension resizeInnerPanel(String data)
resizeInnerPanel
in interface JmolStatusListener
static void checkOut(String name)