jsynoptic.plugins.java3d
Class UniversePool

java.lang.Object
  extended by jsynoptic.plugins.java3d.UniversePool

public class UniversePool
extends java.lang.Object

A pool to contain and retrieve the used Universe


Nested Class Summary
static interface UniversePool.Listener
           
 
Field Summary
static java.lang.String JAVA_3D_FILE_EXT
           
 
Constructor Summary
UniversePool()
           
 
Method Summary
 void addListner(UniversePool.Listener l)
           
 Universe createUniverse()
           
 Universe getCurrentUniverse()
           
 java.io.File getFile(Universe u)
           
static UniversePool getGlobal()
           
 Universe[] getSortedList()
           
 Universe getUniverse(java.io.File f)
           
 Universe loadUniverse(java.io.File f)
           
 Universe readUniverse(java.io.ObjectInputStream in)
          Universe serialization helper
 void removeListner(UniversePool.Listener l)
           
 void removeUniverse(Universe u)
           
 void saveUniverse(Universe u, java.awt.Component parent)
           
static java.io.File selectFile(java.awt.Component parent, boolean save)
           
 void setCurrentUniverse(Universe u)
           
 void writeUniverse(java.io.ObjectOutputStream out, Universe u)
          Universe serialization helper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_3D_FILE_EXT

public static final java.lang.String JAVA_3D_FILE_EXT
See Also:
Constant Field Values
Constructor Detail

UniversePool

public UniversePool()
Method Detail

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)