public class JSVAppletPrivate extends java.lang.Object implements PanelListener, ScriptInterface, JSVAppletInterface
Modifier and Type | Method and Description |
---|---|
void |
addHighlight(double x1,
double x2,
int r,
int g,
int b,
int a)
Method that can be called from another applet or from javascript that adds
a highlight to a portion of the plot area of a
JSVPanel |
void |
checkCallbacks(java.lang.String title) |
void |
checkOverlay() |
void |
closeSource(JDXSource source) |
JDXSource |
createSource(java.lang.String data,
java.lang.String filePath,
java.net.URL base,
int firstSpec,
int lastSpec) |
void |
execClose(java.lang.String value,
boolean fromScript) |
java.lang.String |
execExport(JSVPanel jsvp,
java.lang.String value) |
void |
execHidden(boolean b) |
java.lang.String |
execLoad(java.lang.String value) |
void |
execScriptComplete(java.lang.String msg,
boolean isOK) |
void |
execSetAutoIntegrate(boolean b) |
void |
execSetCallback(ScriptToken st,
java.lang.String value) |
void |
execSetInterface(java.lang.String value) |
void |
execTest(java.lang.String value) |
java.lang.String |
exportSpectrum(java.lang.String type,
int n)
Delivers spectrum coded as desired: XY, SQZ, PAC, DIF, DIFDUP, FIX, AML,
CML
|
boolean |
getAutoCombine() |
boolean |
getAutoShowLegend() |
java.lang.String |
getCoordinate()
Method that can be called from another applet or from javascript to return
the coordinate of clicked point in the plot area of the
JSVPanel |
JDXSource |
getCurrentSource() |
java.net.URL |
getDocumentBase() |
java.lang.String |
getFileAsString(java.lang.String value) |
int |
getFileCount() |
java.lang.String |
getIntegrationRatios() |
JDXSpectrum.IRMode |
getIRMode() |
JSVPanel |
getNewJSVPanel(JDXSpectrum spec) |
JSVPanel |
getNewJSVPanel(java.util.List<JDXSpectrum> specs) |
JSVPanelNode |
getNewPanelNode(java.lang.String id,
java.lang.String fileName,
JDXSource source,
JSVPanel jsvp) |
JSVDialog |
getOverlayLegend(JSVPanel jsvp) |
PanelData |
getPanelData() |
java.util.List<JSVPanelNode> |
getPanelNodes() |
Parameters |
getParameters() |
java.lang.Object |
getPopupMenu() |
java.util.Map<java.lang.String,java.lang.Object> |
getPropertyAsJavaObject(java.lang.String key) |
java.lang.String |
getPropertyAsJSON(java.lang.String key) |
java.lang.String |
getReturnFromJmolModel() |
JSVPanel |
getSelectedPanel() |
java.lang.String |
getSolnColour()
Returns the calculated colour of a visible spectrum (Transmittance)
|
java.lang.Object |
getSpectraTree() |
int |
incrementScriptLevelCount(int n) |
int |
incrementViewCount(int n) |
boolean |
isPro() |
boolean |
isSigned() |
void |
loadInline(java.lang.String data)
Loads in-line JCAMP-DX data into the existing applet window
|
void |
openDataOrFile(java.lang.String data,
java.lang.String name,
java.util.List<JDXSpectrum> specs,
java.lang.String url,
int firstSpec,
int lastSpec,
boolean isAppend) |
void |
panelEvent(java.lang.Object eventObj)
called by notifyPeakPickedListeners in JSVPanel
|
void |
print()
Opens the print dialog to enable printing
|
java.lang.String |
print(java.lang.String pdfFileName)
Opens the print dialog to enable printing
|
void |
process(java.util.List<JDXSpectrum> specs) |
void |
removeAllHighlights()
Method that can be called from another applet or from javascript that
removes all highlights from the plot area of a
JSVPanel |
void |
removeHighlight(double x1,
double x2)
Method that can be called from another applet or from javascript that
removes a highlight from the plot area of a
JSVPanel |
void |
repaint() |
void |
repaintCompleted() |
void |
requestRepaint() |
void |
reversePlot()
Method that can be called from another applet or from javascript that
toggles reversing the plot on a
JSVPanel |
void |
runScript(java.lang.String script)
runs a script in proper order as listed
|
boolean |
runScriptNow(java.lang.String params) |
void |
sendPanelChange(JSVPanel jsvp) |
void |
setCurrentSource(JDXSource source) |
void |
setCursorObject(java.lang.Object c) |
void |
setFileCount(int n) |
void |
setFilePath(java.lang.String tmpFilePath) |
void |
setIntegrationRatios(java.lang.String value) |
void |
setIRMode(JDXSpectrum.IRMode mode) |
void |
setLoaded(java.lang.String fileName,
java.lang.String filePath) |
void |
setLoadImaginary(boolean TF) |
void |
setMenuEnables(JSVPanelNode node,
boolean isSplit) |
void |
setNode(JSVPanelNode panelNode,
boolean fromTree) |
JSVPanelNode |
setOverlayVisibility(JSVPanelNode node) |
void |
setPropertiesFromPreferences(JSVPanel jsvp,
boolean includeMeasures) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setRecentURL(java.lang.String filePath) |
void |
setReturnFromJmolModel(java.lang.String model) |
void |
setSelectedPanel(JSVPanel jsvp) |
JSVPanel |
setSpectrum(java.lang.String value) |
void |
setSpectrumNumber(int n)
Sets the spectrum to the specified block number
|
void |
setVisible(boolean b) |
void |
showProperties() |
void |
syncLoad(java.lang.String filePath)
Loads a new file into the existing applet window
|
void |
syncScript(java.lang.String peakScript)
precede |
void |
syncToJmol(java.lang.String msg) |
void |
toggleCoordinate()
Method that can be called from another applet or from javascript that
toggles the coordinate on a
JSVPanel |
void |
toggleGrid()
Method that can be called from another applet or from javascript that
toggles the grid on a
JSVPanel |
void |
toggleIntegration()
Method that can be called from another applet or from javascript that
toggles the integration graph of a
JSVPanel . |
void |
updateBoolean(ScriptToken st,
boolean TF) |
void |
updateRecentMenus(java.lang.String filePath) |
void |
validateAndRepaint() |
void |
writeStatus(java.lang.String msg)
Writes a message to the status label
|
public boolean isPro()
isPro
in interface JSVAppletInterface
public boolean isSigned()
isSigned
in interface JSVAppletInterface
isSigned
in interface ScriptInterface
public JDXSource getCurrentSource()
getCurrentSource
in interface ScriptInterface
public void setCurrentSource(JDXSource source)
setCurrentSource
in interface ScriptInterface
public int getFileCount()
getFileCount
in interface ScriptInterface
public void setFileCount(int n)
setFileCount
in interface ScriptInterface
public void setIntegrationRatios(java.lang.String value)
setIntegrationRatios
in interface ScriptInterface
public java.lang.String getIntegrationRatios()
getIntegrationRatios
in interface ScriptInterface
public void setIRMode(JDXSpectrum.IRMode mode)
setIRMode
in interface ScriptInterface
public JDXSpectrum.IRMode getIRMode()
getIRMode
in interface ScriptInterface
public void setLoadImaginary(boolean TF)
setLoadImaginary
in interface ScriptInterface
public java.util.List<JSVPanelNode> getPanelNodes()
getPanelNodes
in interface ScriptInterface
public Parameters getParameters()
getParameters
in interface ScriptInterface
public java.lang.Object getPopupMenu()
getPopupMenu
in interface ScriptInterface
public int incrementScriptLevelCount(int n)
incrementScriptLevelCount
in interface ScriptInterface
public JSVPanel getSelectedPanel()
getSelectedPanel
in interface ScriptInterface
public java.lang.Object getSpectraTree()
getSpectraTree
in interface ScriptInterface
public int incrementViewCount(int n)
incrementViewCount
in interface ScriptInterface
public java.util.Map<java.lang.String,java.lang.Object> getPropertyAsJavaObject(java.lang.String key)
getPropertyAsJavaObject
in interface JSVAppletInterface
public java.lang.String getPropertyAsJSON(java.lang.String key)
getPropertyAsJSON
in interface JSVAppletInterface
public java.lang.String getCoordinate()
JSVPanel
getCoordinate
in interface JSVAppletInterface
public void loadInline(java.lang.String data)
loadInline
in interface JSVAppletInterface
data
- Stringpublic java.lang.String exportSpectrum(java.lang.String type, int n)
exportSpectrum
in interface JSVAppletInterface
type
- n
- public void setFilePath(java.lang.String tmpFilePath)
setFilePath
in interface JSVAppletInterface
public void setSpectrumNumber(int n)
setSpectrumNumber
in interface JSVAppletInterface
n
- public void reversePlot()
JSVPanel
reversePlot
in interface JSVAppletInterface
public void toggleGrid()
JSVPanel
toggleGrid
in interface JSVAppletInterface
public void toggleCoordinate()
JSVPanel
toggleCoordinate
in interface JSVAppletInterface
public void toggleIntegration()
JSVPanel
.toggleIntegration
in interface JSVAppletInterface
public void addHighlight(double x1, double x2, int r, int g, int b, int a)
JSVPanel
addHighlight
in interface JSVAppletInterface
x1
- the starting x valuex2
- the ending x valuer
- the red portion of the highlight colorg
- the green portion of the highlight colorb
- the blue portion of the highlight colora
- the alpha portion of the highlight colorpublic void removeAllHighlights()
JSVPanel
removeAllHighlights
in interface JSVAppletInterface
public void removeHighlight(double x1, double x2)
JSVPanel
removeHighlight
in interface JSVAppletInterface
x1
- the starting x valuex2
- the ending x valuepublic void syncScript(java.lang.String peakScript)
JSVAppletInterface
syncScript
in interface JSVAppletInterface
public void writeStatus(java.lang.String msg)
writeStatus
in interface JSVAppletInterface
writeStatus
in interface ScriptInterface
msg
- the messagepublic void sendPanelChange(JSVPanel jsvp)
sendPanelChange
in interface ScriptInterface
public void print()
public java.lang.String print(java.lang.String pdfFileName)
print
in interface JSVAppletInterface
print
in interface ScriptInterface
public void repaint()
repaint
in interface ScriptInterface
public void validateAndRepaint()
validateAndRepaint
in interface ScriptInterface
public void syncLoad(java.lang.String filePath)
syncLoad
in interface ScriptInterface
filePath
- public void openDataOrFile(java.lang.String data, java.lang.String name, java.util.List<JDXSpectrum> specs, java.lang.String url, int firstSpec, int lastSpec, boolean isAppend)
openDataOrFile
in interface ScriptInterface
public boolean runScriptNow(java.lang.String params)
runScriptNow
in interface JSVAppletInterface
public void setSelectedPanel(JSVPanel jsvp)
setSelectedPanel
in interface ScriptInterface
public void panelEvent(java.lang.Object eventObj)
panelEvent
in interface PanelListener
public void runScript(java.lang.String script)
JSVAppletInterface
runScript
in interface JSVAppletInterface
runScript
in interface ScriptInterface
public java.lang.String execExport(JSVPanel jsvp, java.lang.String value)
execExport
in interface ScriptInterface
public void execSetCallback(ScriptToken st, java.lang.String value)
execSetCallback
in interface ScriptInterface
public java.lang.String getSolnColour()
getSolnColour
in interface JSVAppletInterface
public void execClose(java.lang.String value, boolean fromScript)
execClose
in interface ScriptInterface
public java.lang.String execLoad(java.lang.String value)
execLoad
in interface ScriptInterface
public void execHidden(boolean b)
execHidden
in interface ScriptInterface
public void execSetInterface(java.lang.String value)
execSetInterface
in interface ScriptInterface
public void execScriptComplete(java.lang.String msg, boolean isOK)
execScriptComplete
in interface ScriptInterface
public JSVPanel setSpectrum(java.lang.String value)
setSpectrum
in interface ScriptInterface
public void execSetAutoIntegrate(boolean b)
execSetAutoIntegrate
in interface ScriptInterface
public PanelData getPanelData()
getPanelData
in interface ScriptInterface
public JSVDialog getOverlayLegend(JSVPanel jsvp)
getOverlayLegend
in interface ScriptInterface
public void syncToJmol(java.lang.String msg)
syncToJmol
in interface ScriptInterface
msg
- public void setVisible(boolean b)
setVisible
in interface JSVAppletInterface
public void showProperties()
showProperties
in interface ScriptInterface
public void updateBoolean(ScriptToken st, boolean TF)
updateBoolean
in interface ScriptInterface
public void checkCallbacks(java.lang.String title)
checkCallbacks
in interface ScriptInterface
public JSVPanelNode setOverlayVisibility(JSVPanelNode node)
setOverlayVisibility
in interface ScriptInterface
public void setNode(JSVPanelNode panelNode, boolean fromTree)
setNode
in interface ScriptInterface
public void closeSource(JDXSource source)
closeSource
in interface ScriptInterface
public void process(java.util.List<JDXSpectrum> specs)
public void setCursorObject(java.lang.Object c)
setCursorObject
in interface ScriptInterface
public boolean getAutoCombine()
getAutoCombine
in interface ScriptInterface
public java.net.URL getDocumentBase()
getDocumentBase
in interface ScriptInterface
public JDXSource createSource(java.lang.String data, java.lang.String filePath, java.net.URL base, int firstSpec, int lastSpec) throws java.lang.Exception
createSource
in interface ScriptInterface
java.lang.Exception
public JSVPanel getNewJSVPanel(java.util.List<JDXSpectrum> specs)
getNewJSVPanel
in interface ScriptInterface
public JSVPanel getNewJSVPanel(JDXSpectrum spec)
getNewJSVPanel
in interface ScriptInterface
public JSVPanelNode getNewPanelNode(java.lang.String id, java.lang.String fileName, JDXSource source, JSVPanel jsvp)
getNewPanelNode
in interface ScriptInterface
public boolean getAutoShowLegend()
getAutoShowLegend
in interface ScriptInterface
public void checkOverlay()
checkOverlay
in interface ScriptInterface
public void setReturnFromJmolModel(java.lang.String model)
setReturnFromJmolModel
in interface ScriptInterface
public java.lang.String getReturnFromJmolModel()
getReturnFromJmolModel
in interface ScriptInterface
public void setPropertiesFromPreferences(JSVPanel jsvp, boolean includeMeasures)
setPropertiesFromPreferences
in interface ScriptInterface
public void requestRepaint()
requestRepaint
in interface ScriptInterface
public void repaintCompleted()
repaintCompleted
in interface ScriptInterface
public void setLoaded(java.lang.String fileName, java.lang.String filePath)
setLoaded
in interface ScriptInterface
public void setMenuEnables(JSVPanelNode node, boolean isSplit)
setMenuEnables
in interface ScriptInterface
public void setRecentURL(java.lang.String filePath)
setRecentURL
in interface ScriptInterface
public void updateRecentMenus(java.lang.String filePath)
updateRecentMenus
in interface ScriptInterface
public void execTest(java.lang.String value)
execTest
in interface ScriptInterface
public void setProperty(java.lang.String key, java.lang.String value)
setProperty
in interface ScriptInterface
public java.lang.String getFileAsString(java.lang.String value)
getFileAsString
in interface ScriptInterface