01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/J3dFlyData.java,v 1.1 2005/04/20 21:04:21 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;
19:
20: import java.util.HashMap;
21: import java.io.Serializable;
22: import org.jdesktop.j3dfly.warp.WarpSet;
23:
24: /**
25: * Extra J3dFly data which is included in .j3f files
26: *
27: * @author Paul Byrne
28: * @version $Revision: 1.1 $
29: */
30: public class J3dFlyData extends java.lang.Object implements
31: Serializable {
32:
33: private HashMap properties = null;
34:
35: /** Creates new J3dFlyData */
36: public J3dFlyData() {
37: }
38:
39: public void addProperty(String propertyName, Serializable object) {
40: if (properties == null)
41: properties = new HashMap();
42:
43: properties.put(propertyName, object);
44: }
45:
46: public Object getProperty(String propertyName) {
47: if (properties == null)
48: return null;
49: else
50: return properties.get(propertyName);
51: }
52:
53: }
|