Class CMLExporter
java.lang.Object
jspecview.export.CMLExporter
- All Implemented Interfaces:
JSVExporter
class
CMLExporter contains static methods to export a Graph as
as CIML. CMLExporter uses a template file called 'cml_tmp.vm'
or 'cml_nmr.vm'. So any changes in design should be done in these files.- Author:
- Prof Robert J. Lancashire, Bob Hanson, hansonr@stolaf.edu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected doubleprotected intprotected doubleprotected Stringprotected doubleprotected Stringprotected Stringprotected Stringprotected Stringprotected Lst<Coordinate> protected intprotected doubleprotected Stringprotected Stringprotected OCprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected JSViewerprotected Stringprotected Stringprotected Stringprotected Stringprotected Coordinate[]protected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportTheSpectrum(JSViewer viewer, ExportType mode, OC out, Spectrum spec, int startIndex, int endIndex, PanelData pd, boolean asBase64) Exports the Spectrum that is displayed by JSVPanel to a file given by fileName If display is zoomed then export the current viewprotected voidprotected voidprotected booleansetParameters(Spectrum spec) protected booleanprotected String
-
Field Details
-
continuous
protected boolean continuous -
title
-
ident
-
state
-
xUnits
-
yUnits
-
xUnitFactor
-
xUnitExponent
-
xUnitLabel
-
yUnitLabel
-
datatype
-
owner
-
origin
-
spectypeInitials
-
longdate
-
date
-
time
-
vendor
-
model
-
resolution
-
pathlength
-
molform
-
bp
-
mp
-
casRN
-
casName
-
obNucleus
-
obFreq
protected double obFreq -
firstX
protected double firstX -
lastX
protected double lastX -
deltaX
protected double deltaX -
solvRef
-
solvName
-
startIndex
protected int startIndex -
endIndex
protected int endIndex -
xyCoords
-
npoints
protected int npoints -
newXYCoords
-
out
-
vwr
-
-
Constructor Details
-
CMLExporter
public CMLExporter()
-
-
Method Details
-
exportTheSpectrum
public String exportTheSpectrum(JSViewer viewer, ExportType mode, OC out, Spectrum spec, int startIndex, int endIndex, PanelData pd, boolean asBase64) throws IOException Exports the Spectrum that is displayed by JSVPanel to a file given by fileName If display is zoomed then export the current view- Parameters:
viewer-mode- TODOout-spec- the spectrum to exportstartIndex- the starting point of the spectrumendIndex- the end pointpd- only for SVG/SVGIasBase64- TODO- Returns:
- data if fileName is null
- Throws:
IOException
-
setup
-
setParameters
-
setContext
protected void setContext() -
initForm
-
writeForm
- Throws:
IOException
-