Révision 1738

tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartCreator.java (revision 1738)
11 11

  
12 12

  
13 13
/**
14
 * Abstract base for chart creation in command plugins from a result data.
14
 * Abstract base for chart creation in command plug-ins from a result data.
15 15
 * 
16 16
 * @author sjacquot
17 17
 *
......
27 27
	 */
28 28
	public static final int SHOW_TITLE = 0, SHOW_LEGEND = 1; 
29 29
	
30
	
31 30
	/**
32 31
	 * The linked charts engine.
33 32
	 */
......
43 42
	 */
44 43
	protected String chartType;
45 44
	
45
	
46
	
46 47
	/**
47
	 * 
48
	 * Default constructor.
48 49
	 */
49 50
	public ChartCreator() {
50 51
	}
......
71 72
	 * Creates a chart file according to the specified result data and parameters.
72 73
	 * @param result
73 74
	 * @param file
74
	 * @param preferencesNode
75 75
	 * @return
76 76
	 */
77 77
	public File createChartFile(ChartResult result, File file)	{
......
82 82
	}
83 83
	
84 84
	/**
85
	 * Creates a chart file according to the specified result data and parameters.
85
	 * Creates a chart file according to the specified result data using the specified prefix for the file name.
86 86
	 * @param result
87 87
	 * @param fileNamePrefix
88
	 * @param params
89 88
	 * @return
90 89
	 */
91 90
	public File createChartFile(ChartResult result, String fileNamePrefix)	{
......
96 95
	/**
97 96
	 * Creates a chart file according to the specified result data.
98 97
	 * @param result
99
	 * @param params
100 98
	 * @return
101 99
	 */
102 100
	public File createChartFile(ChartResult result) {
tmp/org.txm.chartsengine.r.core/src/org/txm/chartsengine/r/core/RChartsEngine.java (revision 1738)
115 115
		
116 116
		return "title(main = \"" + title + "\");\n"; //$NON-NLS-1$
117 117
	}
118

  
119
	/**
120
	 * Returns a string that represents the R command to draw a subtitle.
121
	 * @param title
122
	 * @return
123
	 */
124
	public String getSubtitlePlotCmd(String title)	{
125
		return "title(sub = \"" + title + "\");\n"; //$NON-NLS-1$
126
	}
127

  
118 128
	
119 129
	/**
120 130
	 * Returns a string that represents the R command to draw a grid.

Formats disponibles : Unified diff