| |
|
| java.lang.Object com.db.loaders.LoaderBase
All known Subclasses: com.db.loaders.j3d.J3DLoader,
LoaderBase | abstract public class LoaderBase implements Loader(Code) | | This class implements the Loader interface. To use
a file loader would extend this class.
|
Field Summary | |
protected String | basePath Stores the basePath for data files associated with the file
passed into load(String). | protected URL | baseUrl Stores the baseUrl for data files associated with the URL
passed into load(URL). | protected int | loadFlags Stores the types of objects that the user wishes to load. |
Constructor Summary | |
public | LoaderBase() Constructs a Loader with default values for all variables. | public | LoaderBase(int flags) Constructs a Loader with the specified flags word. |
Method Summary | |
public String | getBasePath() Returns the current base path setting. | public URL | getBaseUrl() Returns the current base URL setting. | public int | getFlags() Returns the current loading flags setting. | public void | setBasePath(String pathName) This method sets the base path name for data files associated with
the file. | public void | setBaseUrl(URL url) This method sets the base URL name for data files associated with
the file. | public void | setFlags(int flags) This method sets the load flags for the file. |
basePath | protected String basePath(Code) | | Stores the basePath for data files associated with the file
passed into load(String).
|
baseUrl | protected URL baseUrl(Code) | | Stores the baseUrl for data files associated with the URL
passed into load(URL).
|
loadFlags | protected int loadFlags(Code) | | Stores the types of objects that the user wishes to load.
|
LoaderBase | public LoaderBase()(Code) | | Constructs a Loader with default values for all variables.
|
LoaderBase | public LoaderBase(int flags)(Code) | | Constructs a Loader with the specified flags word.
|
getBasePath | public String getBasePath()(Code) | | Returns the current base path setting.
|
getBaseUrl | public URL getBaseUrl()(Code) | | Returns the current base URL setting.
|
getFlags | public int getFlags()(Code) | | Returns the current loading flags setting.
|
setBasePath | public void setBasePath(String pathName)(Code) | | This method sets the base path name for data files associated with
the file. The basePath should be null by default, which is an indicator
to the loader that it should look for any associated files starting
from the same directory as the file passed into the load(String)
method.
Note: Users of setBasePath() would then use load(String)
as opposed to load(URL).
|
setBaseUrl | public void setBaseUrl(URL url)(Code) | | This method sets the base URL name for data files associated with
the file. The baseUrl should be null by default, which is an indicator
to the loader that it should look for any associated files starting
from the same place as the URL passed into the load(URL) method.
Note: Users of setBaseUrl() would then use load(URL)
as opposed to load(String).
|
setFlags | public void setFlags(int flags)(Code) | | This method sets the load flags for the file. The flags should
equal 0 by default (which tells the loader to only load geometry).
|
|
|
|