public interface GeomSSApp
Modified by: Joseph A. Huwaldt
Modifier and Type | Method and Description |
---|---|
void |
addToWindowsMenu(java.awt.Window window)
Add the supplied window to the Windows menu of the main application.
|
java.util.List<GeomReader> |
getAllGeomWriters() |
java.awt.Frame |
getParentFrame() |
Preferences |
getPreferences() |
java.util.ResourceBundle |
getResourceBundle() |
GeomSSScene |
getScene() |
void |
loadWorkspace(java.io.File theFile)
Load the specified XGSS file into the current global workspace.
|
void |
posWindowFromPrefs(java.lang.String prefsKey,
java.awt.Window window)
Positions the input window at the location stored in the preferences using the
supplied key (with "PosX" and "PosY" appended).
|
void |
print()
Print the current 3D view.
|
void |
quit()
Quit or exit the application after properly saving preferences, etc.
|
GeometryList |
readGeomFile(java.io.File theFile)
Read in a geometry file and return a GeometryList instance.
|
void |
saveAsJPEG()
Save a copy of the current 3D view as a JPEG file.
|
void |
saveAsJPEG(java.io.File file)
Save a copy of the current 3D view as a JPEG file.
|
void |
saveAsPNG()
Save a copy of the current 3D view as a PNG file.
|
void |
saveAsPNG(java.io.File file)
Save a copy of the current 3D view as a PNG file.
|
void |
savePrefsWindowPos(java.lang.String prefsKey,
java.awt.Window window)
Save the location of the specified window in the application preferences using the
supplied key (with "PosX" and "PosY" appended).
|
void |
saveWorkspace(java.io.File theFile)
Save the entire global workspace to an XGSS file.
|
void |
writeGeomFile(GeometryList geometry,
java.io.File theFile,
GeomReader writer)
Write out geometry to the specified file using the specified GeometryList instance
(some GeomReader classes have specific requirements for the contents of this list).
|
GeomSSScene getScene()
java.awt.Frame getParentFrame()
Preferences getPreferences()
java.util.ResourceBundle getResourceBundle()
void addToWindowsMenu(java.awt.Window window)
window
- The window to be added to the Windows menu.void quit()
GeometryList readGeomFile(java.io.File theFile)
theFile
- The file to be read in. If null
is passed, this method
will do nothing.null
if the user cancels the read at any point or if an
exception of any kind is thrown.void writeGeomFile(GeometryList geometry, java.io.File theFile, GeomReader writer)
geometry
- The geometry object to be written out.theFile
- The file to be written to.writer
- The GeomReader to use to write out the file.java.util.List<GeomReader> getAllGeomWriters()
void saveWorkspace(java.io.File theFile)
theFile
- The file to write the workspace to in XGSS format.void loadWorkspace(java.io.File theFile)
theFile
- The XGSS file to load into the current workspace.void saveAsPNG()
void saveAsPNG(java.io.File file)
file
- The file to be saved.void saveAsJPEG()
void saveAsJPEG(java.io.File file)
file
- The file to be saved.void print()
void posWindowFromPrefs(java.lang.String prefsKey, java.awt.Window window)
prefsKey
- The prefix for the preference key to use ("PosX" and "PosY" will be
appended in order to retrieve the actual preference values).window
- The window to be positioned using the preference values.Window.setLocationByPlatform(boolean)
void savePrefsWindowPos(java.lang.String prefsKey, java.awt.Window window)
prefsKey
- The prefix for the preference key to use ("PosX" and "PosY" will be
appended in order to save the actual preference values).window
- The window for which the position is to be saved in the
preferences.