jsynoptic.plugins.java3d
Class UniversePool
java.lang.Object
jsynoptic.plugins.java3d.UniversePool
public class UniversePool
- extends java.lang.Object
A pool to contain and retrieve the used Universe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA_3D_FILE_EXT
public static final java.lang.String JAVA_3D_FILE_EXT
- See Also:
- Constant Field Values
UniversePool
public UniversePool()
getGlobal
public static UniversePool getGlobal()
getCurrentUniverse
public Universe getCurrentUniverse()
setCurrentUniverse
public void setCurrentUniverse(Universe u)
addListner
public void addListner(UniversePool.Listener l)
removeListner
public void removeListner(UniversePool.Listener l)
getSortedList
public Universe[] getSortedList()
createUniverse
public Universe createUniverse()
removeUniverse
public void removeUniverse(Universe u)
throws java.io.IOException
- Throws:
java.io.IOException
saveUniverse
public void saveUniverse(Universe u,
java.awt.Component parent)
throws java.io.IOException
- Throws:
java.io.IOException
loadUniverse
public Universe loadUniverse(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
getFile
public java.io.File getFile(Universe u)
getUniverse
public Universe getUniverse(java.io.File f)
readUniverse
public Universe readUniverse(java.io.ObjectInputStream in)
throws java.io.IOException
- Universe serialization helper
- Throws:
java.io.IOException
writeUniverse
public void writeUniverse(java.io.ObjectOutputStream out,
Universe u)
throws java.io.IOException
- Universe serialization helper
- Throws:
java.io.IOException
selectFile
public static java.io.File selectFile(java.awt.Component parent,
boolean save)