Revision 1873

tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/IChartComponent.java (revision 1873)
6 6

  
7 7
/**
8 8
 * Chart component interface.
9
 * A component dedicated to render chart, from a file, from an AWT object, etc. and to be embedded in an SWT ChartComposite.
9
 * A component dedicated to render chart, from a file, from an AWT object, etc. and to be added to an SWT ChartComposite.
10 10
 * 
11 11
 * @author sjacquot
12 12
 *
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/SWTChartsComponentsProvider.java (revision 1873)
249 249
	 * @return the installed charts components provider according to its class type if it exists otherwise null
250 250
	 */
251 251
	public static SWTChartsComponentsProvider getComponentsProvider(Class type)	{
252
		
252 253
		SWTChartsComponentsProvider provider = null;
254
		
253 255
		for(int i = 0; i < SWTChartsComponentsProvider.chartsComponentsProviders.size(); i++) {
254 256
			if(SWTChartsComponentsProvider.chartsComponentsProviders.get(i).getClass().equals(type))	{
255 257
				provider = SWTChartsComponentsProvider.chartsComponentsProviders.get(i);
256 258
				break;
257 259
			}
258 260
		}
261
		
259 262
		return provider;
260 263
	}
261 264

  

Also available in: Unified diff