|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectjgDataLoader.DataLoader
The data loader is resposible for maintaing a list of catagory folder locations, validating catagories, and loading media in the catagories. TODO: If wrapped in a jar file, use a default catagory (directory) in the jar file. TODO: Find out where Apple places user specific data, for both MAC OS X and previous OS versions....
| Field Summary | |
protected CatagoryList |
catagoryList
Private instance of the catagory list |
protected java.io.File |
globalDir
Global location of catagory folders |
protected java.io.File |
includeDir
User specified directory. |
protected java.io.File |
userDir
User specific location of catagory folders (in the user's home dir) |
| Constructor Summary | |
DataLoader()
Constructor. |
|
| Method Summary | |
void |
addCatagoriesFromDir(java.io.File dir)
Adds catagory names to the list of catagories, using the directory entries in 'dir'. |
GlyphImageList |
getAvailableGlyphImages()
Retrieves all available glyph images with no glyph restrictions |
GlyphImageList |
getAvailableGlyphImages(GlyphSet restrict)
Retrieves all available glyph images restricted to the passed GlyphSet |
GlyphSet |
getAvailableGlyphs()
Retrieves all available glyphs with no restrictions. |
GlyphSet |
getAvailableGlyphs(GlyphSet restrict)
Retrieves a new GlyphSet indicating all available glyphs for the selected catagory, retstricted to the passed GlyphSet (if not empty). |
java.lang.String[] |
getCatagoryNames()
Retrieves the names of all the available catagories. |
boolean |
isCatagoryValid(java.lang.String cat)
Checks to see if a catagory is valid |
java.io.File |
locateCatagory(java.lang.String name)
Locates a catagory by name. |
java.lang.String |
toString()
Returns the string representation of this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected CatagoryList catagoryList
protected java.io.File globalDir
protected java.io.File userDir
protected java.io.File includeDir
| Constructor Detail |
public DataLoader()
| Method Detail |
public java.lang.String toString()
public boolean isCatagoryValid(java.lang.String cat)
public void addCatagoriesFromDir(java.io.File dir)
dir - the directory to look inpublic java.io.File locateCatagory(java.lang.String name)
name - the name of the catagory.
public java.lang.String[] getCatagoryNames()
public GlyphSet getAvailableGlyphs(GlyphSet restrict)
restrict - the GlyphSet to restrict the retreival to.
public GlyphSet getAvailableGlyphs()
public GlyphImageList getAvailableGlyphImages(GlyphSet restrict)
restrict - the GlyphSet to filter on
public GlyphImageList getAvailableGlyphImages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||