Revision 18655 trunk/libraries/libAnimation/src/com/iver/cit/gvsig/animation/keyframe/interpolator/FuntionFactory.java

View differences:

FuntionFactory.java
23 23
		FuntionFactory.register(lf);
24 24
	}
25 25

  
26
	public static void register(IInterpolatorFuntion funtion) {
26
	public static void register(IInterpolatorTimeFuntion funtion) {
27 27
		objectsList.put(funtion.getClassName(), funtion);
28 28
	}
29 29

  
30
	public static IInterpolatorFuntion createObject(String type) {
31
		IInterpolatorFuntion funtion = null;
30
	public static IInterpolatorTimeFuntion createObject(String type) {
31
		IInterpolatorTimeFuntion funtion = null;
32 32
		try {
33 33
			System.out.println("existe el tipo " + type + "  "
34 34
					+ objectsList.containsKey(type));
35 35
			if ((objectsList.containsKey(type)) == false)
36 36
				return null;
37 37
//			funtion = objectsList.get(type).getClass().newInstance();
38
			funtion = (IInterpolatorFuntion) objectsList.get(type).getClass().newInstance();
38
			funtion = (IInterpolatorTimeFuntion) objectsList.get(type).getClass().newInstance();
39 39
		} catch (InstantiationException e) {
40 40
			e.printStackTrace();
41 41
		} catch (IllegalAccessException e) {

Also available in: Unified diff