1 package jspecview.export;
2 
3 import javajs.util.Lst;
4 import jspecview.api.JSVPanel;
5 import jspecview.common.Spectrum;
6 import jspecview.common.JSViewer;
7 
8 
9 public interface ExportInterface {
10 
11 	/**
12 	 * from EXPORT command
13 	 * @param jsvp
14 	 * @param tokens
15 	 * @param forInkscape
16 	 *
17 	 * @return message for status line
18 	 */
exportCmd(JSVPanel jsvp, Lst<String> tokens, boolean forInkscape)19 	String exportCmd(JSVPanel jsvp, Lst<String> tokens,
20 			boolean forInkscape);
21 
exportSpectrum(JSViewer viewer, String type)22 	void exportSpectrum(JSViewer viewer, String type);
23 
24 	/**
25 	 * returns message if path is not null, otherwise full string of text (unsigned applet)
26 	 * @param type
27 	 * @param path
28 	 * @param spec
29 	 * @param startIndex
30 	 * @param endIndex
31 	 * @return message or text
32 	 * @throws Exception
33 	 */
exportTheSpectrum(String type, String path, Spectrum spec, int startIndex, int endIndex)34 	String exportTheSpectrum(String type, String path,
35 			Spectrum spec, int startIndex, int endIndex) throws Exception;
36 
printPDF(JSViewer viewer, String pdfFileName)37 	String printPDF(JSViewer viewer, String pdfFileName);
38 
39 }