au.edu.swin.synergy.plugin.syndicate.charts
Class BChartLoader
java.lang.Object
|
+--au.edu.swin.synergy.kernel.BPlugin
|
+--au.edu.swin.synergy.plugin.syndicate.charts.BChartLoader
- public class BChartLoader
- extends BPlugin
This class reads chart plug-in names from a text file and tries to load them.
Fields inherited from class au.edu.swin.synergy.kernel.BPlugin |
kernel |
Constructor Summary |
BChartLoader()
Creates an empty chart loader. |
Methods inherited from class au.edu.swin.synergy.kernel.BPlugin |
dispatchEvent,
dispatchEventAndWait,
dispatchEventServer,
dispatchEventServerAndWait,
dispatchEventTo,
dispatchEventToAndWait,
getDependancies,
getKernel,
setKernel,
setup,
setup,
unload |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
loadedCharts
protected Vector loadedCharts
- Stores loaded charts.
BChartLoader
public BChartLoader()
- Creates an empty chart loader.
onBCommandEvent
public void onBCommandEvent(Object source,
BCommandEvent event)
- Handles incoming command events.
- Parameters:
source
- The source of the command event.event
- The command event.- Overrides:
- onBCommandEvent in class BPlugin
loadCharts
public void loadCharts(String file)
- Reads in plug-in names from file and tries to load them.
- Parameters:
file
- The name of the configuration file.
getChartDescriptions
public String[] getChartDescriptions()
- Returns the descriptions of all loaded chart plug-ins.
- Returns:
- An array of strings containing chart descriptions.
getClassesFromFile
public void getClassesFromFile(FileInputStream f)
throws IOException
- Reads in the classfile names from the file f and loads the classes.
- Parameters:
f
- The input stream to read the classes from.- Throws:
- IOException - When an error in the file occurs.