Package jspecview.application
Class JSpecView
java.lang.Object
jspecview.application.JSpecView
- All Implemented Interfaces:
ScriptInterface,JmolSyncInterface,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
ConstructorsConstructorDescriptionJSpecView(boolean hasDisplay, JSVInterface jmolStatusListener) The entry point constructor, from Jmol's StatusListener or from the AppletPro object (via MainFrame) or from MainFrame itself. -
Method Summary
Modifier and TypeMethodDescriptionvoidexitJSpecView(boolean withDialog, Object frame) StatusListener (Jmol will not actually close; we will here if stand-alone)voidgetDisplaySchemesProcessor(JSVInterface statusListener) booleanbooleanisSigned()static voidvoidnotifyExitingJspecView(boolean isClosing, boolean askFirst) From MainFrame onlyvoidregister(String appletID, JmolSyncInterface jmolStatusListener) called by Jmol's StatusListener to register itself, indicating to JSpecView that it needs to synchronize with itvoidrepaint()voidScriptInterface requires this.booleanrunScriptNow(String script) voidsaveProperties(Properties properties) voidsetApplicationProperties(boolean shouldApplySpectrumDisplaySettings) voidsetCursor(int id) voidsetMainFrame(MainFrame mainFrame) voidsetProperties(Properties properties) voidsetStatusListener(JSVInterface jmolStatusListener) 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) voidsyncScript(String peakScript) voidsyncToJmol(String msg) voidwriteStatus(String msg) Writes a message to the status bar
-
Field Details
-
defaultDisplaySchemeName
-
jmol
-
-
Constructor Details
-
JSpecView
The entry point constructor, from Jmol's StatusListener or from the AppletPro object (via MainFrame) or from MainFrame itself.- Parameters:
hasDisplay-jmolStatusListener-
-
-
Method Details
-
setMainFrame
-
isHeadless
public boolean isHeadless() -
setStatusListener
-
getDisplaySchemesProcessor
-
setProperties
- Specified by:
setPropertiesin interfaceJSVInterface
-
saveProperties
- Specified by:
savePropertiesin 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
-
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
-
setApplicationProperties
public void setApplicationProperties(boolean shouldApplySpectrumDisplaySettings) -
main
-
register
called by Jmol's StatusListener to register itself, indicating to JSpecView that it needs to synchronize with it- Specified by:
registerin interfaceJmolSyncInterface
-
getJSpecViewProperty
- Specified by:
getJSpecViewPropertyin interfaceJmolSyncInterface
-
syncScript
- Specified by:
syncScriptin interfaceJmolSyncInterface
-
runScript
ScriptInterface requires this. In the applet, this would be queued- Specified by:
runScriptin interfaceJSVInterface- Specified by:
runScriptin interfaceScriptInterface
-
writeStatus
Writes a message to the status bar- Specified by:
writeStatusin interfaceScriptInterface- Parameters:
msg- the message
-
syncToJmol
- Specified by:
syncToJmolin interfaceJSVInterface- Specified by:
syncToJmolin interfaceScriptInterface
-
runScriptNow
- Specified by:
runScriptNowin interfaceScriptInterface
-
notifyExitingJspecView
public void notifyExitingJspecView(boolean isClosing, boolean askFirst) From MainFrame only- Parameters:
isClosing-askFirst-
-
exitJSpecView
StatusListener (Jmol will not actually close; we will here if stand-alone)- Specified by:
exitJSpecViewin interfaceJSVInterface
-