|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GateBuilder
The top level GateBuilder application class. Contains the program's main method and the methods that handle the program global constants and windowing.
Field Summary | |
(package private) Tool |
currentTool
The applications's currently selected tool |
(package private) ToolPalette |
tools
The application's ToolPalette |
Constructor Summary | |
(package private) |
GateBuilder()
The default constructor, which does the same as GateBuilder(false) |
(package private) |
GateBuilder(boolean _application)
The GateBuilder object that contains the entire program. |
Method Summary | |
void |
close(int id)
Closes the specified workspace window, and if it's the last open workspace, quits the program |
boolean |
getApplication()
Returns a boolean indicating if GateBuilder is being run as an application or an applet |
java.awt.Window |
getCurrentWindow()
Gets the window that currently has focus |
java.util.Properties |
getProperties()
Gets the application's properties object for globalization of program properties like print settings. |
boolean |
getReady()
Returns true if the GateBuilder is ready to make files, do shite. |
int |
getToolType()
Returns the currently selected application-wide tool's type, which is an int specified in the Tool class. |
static java.awt.Image |
loadImage(java.awt.Component owner,
java.lang.String file)
Loads an image from the jar file, caches it and returns it. |
static void |
main(java.lang.String[] args)
Runs the GateBuilder application, starting with the tools palette and a blank workspace |
void |
newFile(boolean visible)
Creates a new workspace window, cascading from the previous window. |
void |
openFile()
Creates a new workspace window, and loads a file into it. |
void |
openUrl()
Crates a new workspace window and loads a URL into it. |
void |
quit()
Closes all windows and quits the program |
void |
revertCurrentWindow()
Reverts the current window to its previous value |
void |
setCurrentWindow(java.awt.Window _currentWindow)
Sets the current window to the specified frame |
void |
setProperties(java.util.Properties _properties)
Sets the application's properties object to the input object to allow other classes to modify the global properties settings. |
void |
setTool(Tool newTool)
Sets the application's current tool to the input tool object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
ToolPalette tools
Tool currentTool
Constructor Detail |
GateBuilder()
GateBuilder(boolean _application)
_application
- true if GateBuilder is being created from
an applicationMethod Detail |
public static void main(java.lang.String[] args)
public java.util.Properties getProperties()
public boolean getApplication()
public boolean getReady()
public void setProperties(java.util.Properties _properties)
_properties
- a program-wide java.util.Properties objectpublic void setTool(Tool newTool)
newTool
- a program-wide Tool objectpublic int getToolType()
public void setCurrentWindow(java.awt.Window _currentWindow)
_currentWindow
- The window that currently has focuspublic void revertCurrentWindow()
public java.awt.Window getCurrentWindow()
public void newFile(boolean visible)
visible
- true to make the window immediately visiblepublic void openFile()
public void openUrl()
public void close(int id)
id
- the integer id of the window to closepublic void quit()
public static java.awt.Image loadImage(java.awt.Component owner, java.lang.String file)
owner
- the component that will own the imagefile
- the image path to get
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |