Package jspecview.application
Class JSpecView
java.lang.Object
jspecview.application.JSpecView
- All Implemented Interfaces:
ScriptInterface
,JSVInterface
The Main Class or Entry point of the JSpecView Application.
- Author:
- Debbie-Ann Facey, Khari A. Bryan, Prof Robert J. Lancashire, Bob Hanson St. Olaf College hansonr@stolaf.edu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
exitJSpecView
(boolean withDialog, Object frame) getDisplaySchemesProcessor
(JSVInterface jmolOrAdvancedApplet) boolean
isSigned()
static void
void
repaint()
void
for the applet, this is queuedboolean
runScriptNow
(String script) void
saveProperties
(Properties properties) void
setApplicationProperties
(boolean shouldApplySpectrumDisplaySettings) void
setCursor
(int id) void
setMainFrame
(MainFrame mainFrame) void
setProperties
(Properties properties) void
siCheckCallbacks
(String title) void
siExecHidden
(boolean b) void
siExecScriptComplete
(String msg, boolean isOK) void
siExecSetCallback
(ScriptToken st, String value) void
siExecTest
(String value) siGetNewJSVPanel
(Spectrum spec) siGetNewJSVPanel2
(Lst<Spectrum> specs) void
siNewWindow
(boolean isSelected, boolean fromFrame) void
void
siOpenDataOrFile
(Object data, String name, Lst<Spectrum> specs, String url, int firstSpec, int lastSpec, boolean isAppend, String script, String id) void
siProcessCommand
(String script) void
void
siSetCurrentSource
(JDXSource source) void
siSetLoaded
(String fileName, String filePath) void
siSetMenuEnables
(PanelNode node, boolean isSplit) void
siSetPropertiesFromPreferences
(JSVPanel jsvp, boolean includeMeasures) Sets the display properties as specified from the preferences dialog or the properties filevoid
siSetSelectedPanel
(JSVPanel jsvp) void
siSourceClosed
(JDXSource source) Closes theJDXSource
specified by sourcevoid
siSyncLoad
(String filePath) void
siUpdateBoolean
(ScriptToken st, boolean TF) void
siUpdateRecentMenus
(String filePath) void
siValidateAndRepaint
(boolean isAll) void
syncToJmol
(String msg) void
writeStatus
(String msg)
-
Field Details
-
defaultDisplaySchemeName
-
jmol
-
-
Constructor Details
-
JSpecView
-
-
Method Details
-
setMainFrame
-
main
-
runScript
for the applet, this is queued- Specified by:
runScript
in interfaceJSVInterface
- Specified by:
runScript
in interfaceScriptInterface
-
setProperties
- Specified by:
setProperties
in interfaceJSVInterface
-
saveProperties
- Specified by:
saveProperties
in interfaceJSVInterface
-
exitJSpecView
- Specified by:
exitJSpecView
in interfaceJSVInterface
-
siOpenDataOrFile
public void siOpenDataOrFile(Object data, String name, Lst<Spectrum> specs, String url, int firstSpec, int lastSpec, boolean isAppend, String script, String id) - Specified by:
siOpenDataOrFile
in interfaceScriptInterface
-
siSetCurrentSource
- Specified by:
siSetCurrentSource
in interfaceScriptInterface
-
siSetPropertiesFromPreferences
Sets the display properties as specified from the preferences dialog or the properties file- Specified by:
siSetPropertiesFromPreferences
in interfaceScriptInterface
- Parameters:
jsvp
- the display panel
-
siProcessCommand
- Specified by:
siProcessCommand
in interfaceScriptInterface
-
siSetSelectedPanel
- Specified by:
siSetSelectedPanel
in interfaceScriptInterface
-
siSendPanelChange
public void siSendPanelChange()- Specified by:
siSendPanelChange
in interfaceScriptInterface
-
siSyncLoad
- Specified by:
siSyncLoad
in interfaceScriptInterface
-
siValidateAndRepaint
public void siValidateAndRepaint(boolean isAll) - Specified by:
siValidateAndRepaint
in interfaceScriptInterface
-
siExecHidden
public void siExecHidden(boolean b) - Specified by:
siExecHidden
in interfaceScriptInterface
-
siLoaded
- Specified by:
siLoaded
in interfaceScriptInterface
-
siExecScriptComplete
- Specified by:
siExecScriptComplete
in interfaceScriptInterface
-
siExecSetCallback
- Specified by:
siExecSetCallback
in interfaceScriptInterface
-
siUpdateBoolean
- Specified by:
siUpdateBoolean
in interfaceScriptInterface
-
siCheckCallbacks
- Specified by:
siCheckCallbacks
in interfaceScriptInterface
-
siNodeSet
- Specified by:
siNodeSet
in interfaceScriptInterface
-
siSourceClosed
Closes theJDXSource
specified by source- Specified by:
siSourceClosed
in interfaceScriptInterface
- Parameters:
source
- theJDXSource
-
siSetLoaded
- Specified by:
siSetLoaded
in interfaceScriptInterface
-
siUpdateRecentMenus
- Specified by:
siUpdateRecentMenus
in interfaceScriptInterface
-
siSetMenuEnables
- Specified by:
siSetMenuEnables
in interfaceScriptInterface
-
siGetNewJSVPanel
- Specified by:
siGetNewJSVPanel
in interfaceScriptInterface
-
siGetNewJSVPanel2
- Specified by:
siGetNewJSVPanel2
in interfaceScriptInterface
-
siExecTest
- Specified by:
siExecTest
in interfaceScriptInterface
-
siNewWindow
public void siNewWindow(boolean isSelected, boolean fromFrame) - Specified by:
siNewWindow
in interfaceScriptInterface
-
syncToJmol
- Specified by:
syncToJmol
in interfaceJSVInterface
- Specified by:
syncToJmol
in interfaceScriptInterface
-
repaint
public void repaint()- Specified by:
repaint
in interfaceScriptInterface
-
setCursor
public void setCursor(int id) - Specified by:
setCursor
in interfaceScriptInterface
-
isSigned
public boolean isSigned()- Specified by:
isSigned
in interfaceScriptInterface
-
runScriptNow
- Specified by:
runScriptNow
in interfaceScriptInterface
-
writeStatus
- Specified by:
writeStatus
in interfaceScriptInterface
-
getDisplaySchemesProcessor
-
setApplicationProperties
public void setApplicationProperties(boolean shouldApplySpectrumDisplaySettings)
-