|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.awt.Component |
getMainScreenComponent()
Called to get the (optional) component to be used in the main body of the framework. |
java.lang.String |
getName()
Called to get the display name of the plugin. |
void |
init(BaseGUI parent,
DataLayer data,
Skin skin,
PluginResource resource)
This is called by the framework to set the DataLayer object, the parent GUI component, and the skin. |
void |
start()
When the user presses the triggering button, this method is called. |
void |
stop()
Called by the framework at shutdown to enable the plugin to do any cleaning up that may be required. |
Method Detail |
public void init(BaseGUI parent, DataLayer data, Skin skin, PluginResource resource)
parent
- the 'parent' GUI (the awt.Frame descended object with buttons 'n stuff from which the
plugin is invoked)data
- the 'data' class providing access to other data objects such as stars, surveys, techs etc.skin
- the user-configurable graphical skin which *may* be used to get extra graphics (e.g. skin
compatible buttons).resource
- the PluginResource the plugin can use to access its own
images/data files etc. (even if they're bundled in a jar file).public java.lang.String getName()
public java.awt.Component getMainScreenComponent()
public void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |