| java.lang.Object org.jdesktop.j3dfly.utils.loadercontrol.LoaderControl
LoaderControl | public class LoaderControl extends Object (Code) | | Provides a single interface for using all the Java3D loaders.
author: Paul Byrne version: $Id: LoaderControl.java,v 1.1 2005/04/20 21:05:06 paulby Exp $ |
LoaderControl | public LoaderControl()(Code) | | Creates new LoaderControl
The LoaderControl will create it's own URLClassLoader from which
to load the loaders
|
getEnabledFileExtensions | public String[] getEnabledFileExtensions()(Code) | | |
getLoaderClassName | public String getLoaderClassName(int loaderID)(Code) | | Return the Class Name for the specified loader
|
getLoaderFileExtension | public String getLoaderFileExtension(int loaderID)(Code) | | |
loadFile | public void loadFile(File file, LoaderControlListener listener, org.jdesktop.j3dfly.utils.gui.WorkMonitor workMonitor) throws UnsupportedFormatException(Code) | | Load the specified file, listener is notified when load is complete
Loading takes place in a seperate thread, this method will return
without waiting for the load to complete.
Parameters: file - The file to load Parameters: listener - The listener to call when the load is complete Parameters: workMonitor - A progress monitor for the load, can be null |
setFileFilter | public void setFileFilter(javax.swing.JFileChooser fileChooser)(Code) | | Sets the file filters in the JFileChooser to the various geometry
file formats available in the classpath of the app.
Previous file filters are cleared from the chooser.
This method should be called whenever the fileChooser is
displayed because the FileFilter may change depending on
user updates made in showSelectionDialog().
|
showSelectionDialog | public void showSelectionDialog(java.awt.Frame parent)(Code) | | Show the selection dialog which allows the user to choose
which loaders to use
|
|
|