org.jmol.applet
public class Jmol extends Object implements WrappedApplet
Modifier and Type | Class and Description |
---|---|
(package private) class |
Jmol.MyStatusListener |
Modifier and Type | Field and Description |
---|---|
protected AppletWrapper |
appletWrapper |
protected Map<EnumCallback,String> |
callbacks |
protected boolean |
doTranslate |
private JmolFileDropper |
dropper |
protected String |
fullName |
protected Object |
gRight |
private boolean |
hasProgressBar |
protected boolean |
haveDocumentAccess |
protected String |
htmlName |
private boolean |
isSigned |
protected boolean |
isStereoSlave |
private boolean |
isUpdating |
private String |
language |
private int |
lastMotionEventNumber |
protected boolean |
loading |
protected boolean |
mayScript |
protected StringBuffer |
outputBuffer |
private int |
paintCounter |
private static String[] |
progressbarMsgs |
private static boolean |
REQUIRE_PROGRESSBAR |
private static int |
SCRIPT_CHECK |
private static int |
SCRIPT_NOWAIT |
private static int |
SCRIPT_WAIT |
private boolean |
showPaintTime |
private String |
statusForm |
private String |
statusText |
private String |
statusTextarea |
protected String |
syncId |
private long |
timeBegin |
private int |
timeCount |
private int |
timeLast |
private int |
timeTotal |
protected JmolViewer |
viewer |
Constructor and Description |
---|
Jmol() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
private String |
fmt(int num) |
String |
getAppletInfo() |
private boolean |
getBooleanValue(String propertyName,
boolean defaultValue) |
private String |
getParameter(String paramName) |
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) |
private String |
getValue(String propertyName,
String defaultValue) |
private String |
getValueLowerCase(String paramName,
String defaultValue) |
boolean |
handleEvent(Event e) |
void |
init() |
private void |
initApplication() |
private void |
initWindows() |
void |
jmolReady() |
String |
loadDOMNode(netscape.javascript.JSObject 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) |
private String |
loadInlineSeparated(String strModel,
String script) |
String |
loadInlineString(String strModel,
String script,
boolean isAppend) |
String |
loadNodeId(String nodeId) |
void |
paint(Graphics g) |
private void |
printProgressbarMessage(Graphics g) |
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) |
protected void |
sendJsTextareaStatus(String message) |
protected void |
sendJsTextStatus(String message) |
void |
setAppletWrapper(AppletWrapper appletWrapper) |
private void |
setLogging() |
Object |
setStereoGraphics(boolean isStereo) |
private void |
setStringProperty(String name,
String value) |
private void |
setValue(String name,
String defaultValue) |
private void |
showTimes(int x,
int y,
Graphics g) |
private void |
startPaintClock() |
private void |
stopPaintClock() |
void |
syncScript(String script) |
void |
update(Graphics g) |
private void |
update(Graphics g,
String source) |
private static final boolean REQUIRE_PROGRESSBAR
private static final int SCRIPT_CHECK
private static final int SCRIPT_WAIT
private static final int SCRIPT_NOWAIT
private boolean hasProgressBar
private boolean isSigned
private boolean isUpdating
private boolean showPaintTime
private int paintCounter
private int timeLast
private int timeCount
private int timeTotal
private int lastMotionEventNumber
private long timeBegin
private String language
private String statusForm
private String statusText
private String statusTextarea
private JmolFileDropper dropper
protected boolean doTranslate
protected boolean haveDocumentAccess
protected boolean isStereoSlave
protected boolean loading
protected boolean mayScript
protected String htmlName
protected String fullName
protected String syncId
protected StringBuffer outputBuffer
protected AppletWrapper appletWrapper
protected Object gRight
protected JmolViewer viewer
protected Map<EnumCallback,String> callbacks
private static final String[] progressbarMsgs
public void paint(Graphics g)
paint
in interface WrappedApplet
public void update(Graphics g)
update
in interface WrappedApplet
public void setAppletWrapper(AppletWrapper appletWrapper)
setAppletWrapper
in interface WrappedApplet
public void jmolReady()
jmolReady
in interface WrappedApplet
public void destroy()
destroy
in interface WrappedApplet
public Object setStereoGraphics(boolean isStereo)
setStereoGraphics
in interface JmolAppletInterface
public void init()
init
in interface WrappedApplet
private void initWindows()
private void initApplication()
private void setLogging()
private boolean getBooleanValue(String propertyName, boolean defaultValue)
protected void sendJsTextStatus(String message)
protected void sendJsTextareaStatus(String message)
private void printProgressbarMessage(Graphics g)
public boolean handleEvent(Event e)
handleEvent
in interface WrappedApplet
private void startPaintClock()
private void stopPaintClock()
private String fmt(int num)
private void showTimes(int x, int y, Graphics g)
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 void syncScript(String script)
syncScript
in interface JmolAppletInterface
public String getAppletInfo()
getAppletInfo
in interface WrappedApplet
public Object getProperty(String infoType)
getProperty
in interface JmolAppletInterface
public Object getProperty(String infoType, String paramInfo)
getProperty
in interface JmolAppletInterface
public String getPropertyAsString(String infoType)
getPropertyAsString
in interface JmolAppletInterface
public String getPropertyAsString(String infoType, String paramInfo)
getPropertyAsString
in interface JmolAppletInterface
public String getPropertyAsJSON(String infoType)
getPropertyAsJSON
in interface JmolAppletInterface
public String getPropertyAsJSON(String infoType, String paramInfo)
getPropertyAsJSON
in interface JmolAppletInterface
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
@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 String loadDOMNode(netscape.javascript.JSObject DOMNode)
loadDOMNode
in interface JmolAppletInterface
public String loadNodeId(String nodeId)
loadNodeId
in interface JmolAppletInterface