01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/utils/loadercontrol/LoaderControlListener.java,v 1.1 2005/04/20 21:05:06 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is Java 3D(tm) Fly Through.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dfly.utils.loadercontrol;
19:
20: /**
21: * Listener which gets notified when SceneLoader has finished loading a
22: * file
23: * @author Paul Byrne
24: * @version 1.6, 01/18/02
25: */
26: public interface LoaderControlListener {
27:
28: /**
29: * File was Loaded successfully
30: */
31: public static final int LOAD_COMPLETE = 0;
32:
33: /**
34: * File load failed
35: */
36: public static final int LOAD_FAILED = 1;
37:
38: /**
39: * Called when the scene load is complete
40: *
41: * @param status Status of Load, either LOAD_COMPLETE or LOAD_FAILED
42: * @param scene The scene that was loaded
43: * @param loaderID The ID of the Loader used to load the scene
44: * @param file The file from which the scene was loaded
45: * @param loadException The exception (if any) thrown during the load
46: */
47: public void sceneLoaded(int status,
48: com.sun.j3d.loaders.Scene scene, int loaderID,
49: java.io.File file, Exception loadException);
50:
51: }
|