|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.common.gui.ViewerImpl uk.ac.essex.ia.imageview.ImageViewer
public class ImageViewer
This singleton class handles displaying images it uses the class ApplicationFrame
to
create a skeleton for the GUI then this class creates all the main functionality.
You should have received a copy of GNU public license with this code.
If not please visit this site
Field Summary | |
---|---|
static java.lang.String |
ACTION_XML_FILE
|
Fields inherited from class uk.ac.essex.common.gui.ViewerImpl |
---|
applicationFrame, editHandler, fileHandler, helpHandler, optionsHandler |
Fields inherited from interface uk.ac.essex.ia.imageview.ImageViewerConstants |
---|
allViewsCommand, annotationCommand, currentViewCommand, defaultLevel, defaultWindow, histogramCommand, largestLevel, largestWindow, levelCommand, measurementCommand, nozoom, paramSync, RESOURCE_BASE_NAME, rotationCommand, setLayoutCommand, smallestLevel, smallestWindow, speedCommand, startCommand, statisticsCommand, stopCommand, windowCommand, zoomCommand |
Fields inherited from interface uk.ac.essex.ia.imageview.pref.IVPreferences |
---|
CURRENT_DIRECTORY_NAME, CURRENT_FILE_NAME, FILE_LIST, LOAD_HISTOGRAM, LOAD_STATISTICS, RESTORE_SESSION, SHOW_EXPLORER_PANE |
Method Summary | |
---|---|
void |
addMenus(ApplicationModel appModel)
TODO |
void |
addToToolbar(javax.swing.Action[] actions)
TODO |
static ImageViewer |
getInstance()
|
Interpreter |
getIntepreter()
|
protected boolean |
isImage(java.io.File file)
Is the file an image file. |
static void |
main(java.lang.String[] args)
Test method to test ImageViewer as a standalone application, eventually this will allow ImageViewer to be run as a seperate process for those not requiring OpViewer |
void |
restoreSession()
This loads the GUI into the users prefered state |
void |
setVisible(boolean isVisible)
|
void |
shutDown()
Called to shut the Viewer down, this allows it to save open files etc. |
Methods inherited from class uk.ac.essex.common.gui.ViewerImpl |
---|
getApplicationFrame, getEditHandler, getFileHandler, getHelpHandler, getOptionsHandler, restoreSessionFiles, saveOpenFiles, saveSessionFiles, shouldRestoreSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACTION_XML_FILE
Method Detail |
---|
public static ImageViewer getInstance()
public void addMenus(ApplicationModel appModel)
public void addToToolbar(javax.swing.Action[] actions)
public Interpreter getIntepreter()
public void setVisible(boolean isVisible)
public void shutDown() throws ShutdownCancelledException
shutDown
in interface Viewer
shutDown
in class ViewerImpl
ShutdownCancelledException
public void restoreSession()
restoreSession
in interface Viewer
restoreSession
in class ViewerImpl
protected boolean isImage(java.io.File file)
file
- - The file to check
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |