public class JSVApplet extends javax.swing.JApplet implements JSVAppletInterface
| Constructor and Description |
|---|
JSVApplet() |
| 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 |
destroy() |
java.lang.String |
export(java.lang.String type,
int n)
Deprecated.
|
java.lang.String |
exportSpectrum(java.lang.String type,
int n)
Delivers spectrum coded as desired: XY, SQZ, PAC, DIF, DIFDUP, FIX, AML, CML
|
void |
finalize() |
java.lang.String |
getAppletInfo()
Get Applet information
|
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.lang.String |
getParameter(java.lang.String key,
java.lang.String def) |
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)
|
void |
init()
Initializes applet with parameters and load the
JDXSource
called by the browser |
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 |
script(java.lang.String script)
Deprecated.
|
void |
setFilePath(java.lang.String tmpFilePath) |
void |
setSpectrumNumber(int i)
Sets the spectrum to the specified block number
|
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
|
getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updategetAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stopadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisiblepublic void init()
JDXSource
called by the browserinit in class java.applet.Appletpublic boolean isPro()
isPro in interface JSVAppletInterfacepublic boolean isSigned()
isSigned in interface JSVAppletInterfacepublic void finalize()
finalize in class java.lang.Objectpublic void destroy()
destroy in class java.applet.Appletpublic java.lang.String getParameter(java.lang.String key,
java.lang.String def)
public java.lang.String getAppletInfo()
getAppletInfo in class java.applet.Appletpublic java.lang.String getSolnColour()
JSVAppletInterfacegetSolnColour in interface JSVAppletInterfacepublic java.lang.String getCoordinate()
JSVAppletInterface
JSVPanelgetCoordinate in interface JSVAppletInterfacepublic void loadInline(java.lang.String data)
JSVAppletInterfaceloadInline in interface JSVAppletInterfacedata - String@Deprecated
public java.lang.String export(java.lang.String type,
int n)
public java.lang.String exportSpectrum(java.lang.String type,
int n)
JSVAppletInterfaceexportSpectrum in interface JSVAppletInterfacepublic void setFilePath(java.lang.String tmpFilePath)
setFilePath in interface JSVAppletInterfacepublic void setSpectrumNumber(int i)
JSVAppletInterfacesetSpectrumNumber in interface JSVAppletInterfacepublic void toggleGrid()
JSVAppletInterfaceJSVPaneltoggleGrid in interface JSVAppletInterfacepublic void toggleCoordinate()
JSVAppletInterfaceJSVPaneltoggleCoordinate in interface JSVAppletInterfacepublic void toggleIntegration()
JSVAppletInterfaceJSVPanel.toggleIntegration in interface JSVAppletInterfacepublic void addHighlight(double x1,
double x2,
int r,
int g,
int b,
int a)
JSVAppletInterfaceJSVPaneladdHighlight in interface JSVAppletInterfacex1 - 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()
JSVAppletInterfaceJSVPanelremoveAllHighlights in interface JSVAppletInterfacepublic void removeHighlight(double x1,
double x2)
JSVAppletInterfaceJSVPanelremoveHighlight in interface JSVAppletInterfacex1 - the starting x valuex2 - the ending x valuepublic void reversePlot()
JSVAppletInterfaceJSVPanelreversePlot in interface JSVAppletInterface@Deprecated public void script(java.lang.String script)
public void runScript(java.lang.String script)
JSVAppletInterfacerunScript in interface JSVAppletInterfacepublic void syncScript(java.lang.String peakScript)
JSVAppletInterfacesyncScript in interface JSVAppletInterfacepublic void writeStatus(java.lang.String msg)
JSVAppletInterfacewriteStatus in interface JSVAppletInterfacemsg - the messagepublic java.util.Map<java.lang.String,java.lang.Object> getPropertyAsJavaObject(java.lang.String key)
getPropertyAsJavaObject in interface JSVAppletInterfacepublic java.lang.String getPropertyAsJSON(java.lang.String key)
getPropertyAsJSON in interface JSVAppletInterfacepublic boolean runScriptNow(java.lang.String script)
runScriptNow in interface JSVAppletInterfacepublic java.lang.String print(java.lang.String pdfFileName)
print in interface JSVAppletInterface