01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/event/FileLoadEvent.java,v 1.1 2005/04/20 21:04:25 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.event;
19:
20: import java.io.File;
21: import javax.media.j3d.BranchGroup;
22:
23: /**
24: *
25: * @author paulby
26: * @version
27: */
28: public class FileLoadEvent extends FlyEvent {
29:
30: private File file;
31: private BranchGroup[] groups;
32:
33: /** Creates new FileLoadEvent */
34: public FileLoadEvent(File file, BranchGroup[] groups) {
35: this .file = file;
36: this .groups = groups;
37: }
38:
39: public FileLoadEvent(File file, BranchGroup group) {
40: this .file = file;
41: this .groups = new BranchGroup[] { group };
42: }
43:
44: public File getFile() {
45: return file;
46: }
47:
48: public BranchGroup[] getBranchGroups() {
49: return groups;
50: }
51:
52: }
|