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 TypeMethodDescriptionvoidexitJSpecView(boolean withDialog, Object frame) getDisplaySchemesProcessor(JSVInterface jmolOrAdvancedApplet) booleanisSigned()static voidvoidrepaint()voidfor the applet, this is queuedbooleanrunScriptNow(String script) voidsaveProperties(Properties properties) voidsetApplicationProperties(boolean shouldApplySpectrumDisplaySettings) voidsetCursor(int id) voidsetMainFrame(MainFrame mainFrame) voidsetProperties(Properties properties) voidsiCheckCallbacks(String title) voidsiExecHidden(boolean b) voidsiExecScriptComplete(String msg, boolean isOK) voidsiExecSetCallback(ScriptToken st, String value) voidsiExecTest(String value) siGetNewJSVPanel(Spectrum spec) siGetNewJSVPanel2(Lst<Spectrum> specs) voidsiNewWindow(boolean isSelected, boolean fromFrame) voidvoidsiOpenDataOrFile(Object data, String name, Lst<Spectrum> specs, String url, int firstSpec, int lastSpec, boolean isAppend, String script, String id) voidsiProcessCommand(String script) voidvoidsiSetCurrentSource(JDXSource source) voidsiSetLoaded(String fileName, String filePath) voidsiSetMenuEnables(PanelNode node, boolean isSplit) voidsiSetPropertiesFromPreferences(JSVPanel jsvp, boolean includeMeasures) Sets the display properties as specified from the preferences dialog or the properties filevoidsiSetSelectedPanel(JSVPanel jsvp) voidsiSourceClosed(JDXSource source) Closes theJDXSourcespecified by sourcevoidsiSyncLoad(String filePath) voidsiUpdateBoolean(ScriptToken st, boolean TF) voidsiUpdateRecentMenus(String filePath) voidsiValidateAndRepaint(boolean isAll) voidsyncToJmol(String msg) voidwriteStatus(String msg)
-
Field Details
-
defaultDisplaySchemeName
-
jmol
-
-
Constructor Details
-
JSpecView
-
-
Method Details
-
setMainFrame
-
main
-
runScript
for the applet, this is queued- Specified by:
runScriptin interfaceJSVInterface- Specified by:
runScriptin interfaceScriptInterface
-
setProperties
- Specified by:
setPropertiesin interfaceJSVInterface
-
saveProperties
- Specified by:
savePropertiesin interfaceJSVInterface
-
exitJSpecView
- Specified by:
exitJSpecViewin 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:
siOpenDataOrFilein interfaceScriptInterface
-
siSetCurrentSource
- Specified by:
siSetCurrentSourcein interfaceScriptInterface
-
siSetPropertiesFromPreferences
Sets the display properties as specified from the preferences dialog or the properties file- Specified by:
siSetPropertiesFromPreferencesin interfaceScriptInterface- Parameters:
jsvp- the display panel
-
siProcessCommand
- Specified by:
siProcessCommandin interfaceScriptInterface
-
siSetSelectedPanel
- Specified by:
siSetSelectedPanelin interfaceScriptInterface
-
siSendPanelChange
public void siSendPanelChange()- Specified by:
siSendPanelChangein interfaceScriptInterface
-
siSyncLoad
- Specified by:
siSyncLoadin interfaceScriptInterface
-
siValidateAndRepaint
public void siValidateAndRepaint(boolean isAll) - Specified by:
siValidateAndRepaintin interfaceScriptInterface
-
siExecHidden
public void siExecHidden(boolean b) - Specified by:
siExecHiddenin interfaceScriptInterface
-
siLoaded
- Specified by:
siLoadedin interfaceScriptInterface
-
siExecScriptComplete
- Specified by:
siExecScriptCompletein interfaceScriptInterface
-
siExecSetCallback
- Specified by:
siExecSetCallbackin interfaceScriptInterface
-
siUpdateBoolean
- Specified by:
siUpdateBooleanin interfaceScriptInterface
-
siCheckCallbacks
- Specified by:
siCheckCallbacksin interfaceScriptInterface
-
siNodeSet
- Specified by:
siNodeSetin interfaceScriptInterface
-
siSourceClosed
Closes theJDXSourcespecified by source- Specified by:
siSourceClosedin interfaceScriptInterface- Parameters:
source- theJDXSource
-
siSetLoaded
- Specified by:
siSetLoadedin interfaceScriptInterface
-
siUpdateRecentMenus
- Specified by:
siUpdateRecentMenusin interfaceScriptInterface
-
siSetMenuEnables
- Specified by:
siSetMenuEnablesin interfaceScriptInterface
-
siGetNewJSVPanel
- Specified by:
siGetNewJSVPanelin interfaceScriptInterface
-
siGetNewJSVPanel2
- Specified by:
siGetNewJSVPanel2in interfaceScriptInterface
-
siExecTest
- Specified by:
siExecTestin interfaceScriptInterface
-
siNewWindow
public void siNewWindow(boolean isSelected, boolean fromFrame) - Specified by:
siNewWindowin interfaceScriptInterface
-
syncToJmol
- Specified by:
syncToJmolin interfaceJSVInterface- Specified by:
syncToJmolin interfaceScriptInterface
-
repaint
public void repaint()- Specified by:
repaintin interfaceScriptInterface
-
setCursor
public void setCursor(int id) - Specified by:
setCursorin interfaceScriptInterface
-
isSigned
public boolean isSigned()- Specified by:
isSignedin interfaceScriptInterface
-
runScriptNow
- Specified by:
runScriptNowin interfaceScriptInterface
-
writeStatus
- Specified by:
writeStatusin interfaceScriptInterface
-
getDisplaySchemesProcessor
-
setApplicationProperties
public void setApplicationProperties(boolean shouldApplySpectrumDisplaySettings)
-