Package jspecview.export
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 String
protected String
protected String
protected boolean
protected String
protected String
protected double
protected int
protected double
protected String
protected double
protected String
protected String
protected String
protected String
protected Lst<Coordinate>
protected int
protected double
protected String
protected String
protected OC
protected String
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected String
protected JSViewer
protected String
protected String
protected String
protected String
protected Coordinate[]
protected String
protected 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 void
protected void
protected boolean
setParameters
(Spectrum spec) protected boolean
protected 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:
out
-spec
- the spectrum to exportstartIndex
- the starting point of the spectrumendIndex
- the end pointmode
- TODOpd
- only for SVG/SVGIasBase64
- TODO- Returns:
- data if fileName is null
- Throws:
IOException
-
setup
-
setParameters
-
setContext
protected void setContext() -
initForm
-
writeForm
- Throws:
IOException
-