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, update
getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, 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, validate
action, 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, transferFocusUpCycle
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
setVisible
public void init()
JDXSource
called by the browserinit
in class java.applet.Applet
public boolean isPro()
isPro
in interface JSVAppletInterface
public boolean isSigned()
isSigned
in interface JSVAppletInterface
public void finalize()
finalize
in class java.lang.Object
public void destroy()
destroy
in class java.applet.Applet
public java.lang.String getParameter(java.lang.String key, java.lang.String def)
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
public java.lang.String getSolnColour()
JSVAppletInterface
getSolnColour
in interface JSVAppletInterface
public java.lang.String getCoordinate()
JSVAppletInterface
JSVPanel
getCoordinate
in interface JSVAppletInterface
public void loadInline(java.lang.String data)
JSVAppletInterface
loadInline
in interface JSVAppletInterface
data
- String@Deprecated public java.lang.String export(java.lang.String type, int n)
public java.lang.String exportSpectrum(java.lang.String type, int n)
JSVAppletInterface
exportSpectrum
in interface JSVAppletInterface
public void setFilePath(java.lang.String tmpFilePath)
setFilePath
in interface JSVAppletInterface
public void setSpectrumNumber(int i)
JSVAppletInterface
setSpectrumNumber
in interface JSVAppletInterface
public void toggleGrid()
JSVAppletInterface
JSVPanel
toggleGrid
in interface JSVAppletInterface
public void toggleCoordinate()
JSVAppletInterface
JSVPanel
toggleCoordinate
in interface JSVAppletInterface
public void toggleIntegration()
JSVAppletInterface
JSVPanel
.toggleIntegration
in interface JSVAppletInterface
public void addHighlight(double x1, double x2, int r, int g, int b, int a)
JSVAppletInterface
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()
JSVAppletInterface
JSVPanel
removeAllHighlights
in interface JSVAppletInterface
public void removeHighlight(double x1, double x2)
JSVAppletInterface
JSVPanel
removeHighlight
in interface JSVAppletInterface
x1
- the starting x valuex2
- the ending x valuepublic void reversePlot()
JSVAppletInterface
JSVPanel
reversePlot
in interface JSVAppletInterface
@Deprecated public void script(java.lang.String script)
public void runScript(java.lang.String script)
JSVAppletInterface
runScript
in interface JSVAppletInterface
public void syncScript(java.lang.String peakScript)
JSVAppletInterface
syncScript
in interface JSVAppletInterface
public void writeStatus(java.lang.String msg)
JSVAppletInterface
writeStatus
in interface JSVAppletInterface
msg
- the messagepublic 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 boolean runScriptNow(java.lang.String script)
runScriptNow
in interface JSVAppletInterface
public java.lang.String print(java.lang.String pdfFileName)
print
in interface JSVAppletInterface