public interface 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 |
java.lang.String |
exportSpectrum(java.lang.String type,
int n)
Delivers spectrum coded as desired: XY, SQZ, PAC, DIF, DIFDUP, FIX, AML, CML
|
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 |
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 |
getSolnColour()
Returns the calculated colour of a visible spectrum (Transmittance)
|
boolean |
isPro() |
boolean |
isSigned() |
void |
loadInline(java.lang.String data)
Loads in-line JCAMP-DX data into the existing applet window
|
java.lang.String |
print(java.lang.String pdfFileName) |
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 |
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 script) |
void |
setFilePath(java.lang.String tmpFilePath) |
void |
setSpectrumNumber(int i)
Sets the spectrum to the specified block number
|
void |
setVisible(boolean b) |
void |
syncScript(java.lang.String peakScript)
precede |
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 |
writeStatus(java.lang.String msg)
Writes a message to the status label
|
java.lang.String getSolnColour()
java.lang.String getCoordinate()
JSVPanelvoid loadInline(java.lang.String data)
data - Stringjava.lang.String exportSpectrum(java.lang.String type,
int n)
type - n - java.lang.String print(java.lang.String pdfFileName)
void setFilePath(java.lang.String tmpFilePath)
void setSpectrumNumber(int i)
i - void toggleGrid()
JSVPanelvoid toggleCoordinate()
JSVPanelvoid toggleIntegration()
JSVPanel.void addHighlight(double x1,
double x2,
int r,
int g,
int b,
int a)
JSVPanelx1 - 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 colorvoid removeAllHighlights()
JSVPanelvoid removeHighlight(double x1,
double x2)
JSVPanelx1 - the starting x valuex2 - the ending x valuevoid reversePlot()
JSVPanelvoid runScript(java.lang.String script)
script - void syncScript(java.lang.String peakScript)
peakScript - void writeStatus(java.lang.String msg)
msg - the messagejava.util.Map<java.lang.String,java.lang.Object> getPropertyAsJavaObject(java.lang.String key)
java.lang.String getPropertyAsJSON(java.lang.String key)
boolean isSigned()
boolean isPro()
void setVisible(boolean b)
boolean runScriptNow(java.lang.String script)