net.sf.jomic.ui
Class JomicApplication

java.lang.Object
  extended by net.sf.jomic.ui.JomicApplication
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.util.EventListener

public final class JomicApplication
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.WindowListener

Jomic application that manages all open comics and processes comic independent commands like "about", "help", or "quit".

Author:
Thomas Aglassinger

Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 javax.swing.Action getChangeBlurSettingsAction()
           
static JomicApplication instance()
           
 void open(JomicFrame jomicFrameToOpenIn, java.io.File comicToOpen)
           Open in window jomicFrameToOpenIn the comic comicToOpen.
 void openInNewWindow()
          Open dialog to select comic, then open it in new window.
 void openInNewWindow(java.io.File comicFile)
          Open comic in new window.
 void performToggleFullScreen()
          Change view of current comic to full screen.
 void quit()
          Cleanup, write settings and exit application.
 void setUpFramelessMenuBar()
           
 void windowActivated(java.awt.event.WindowEvent event)
           
 void windowClosed(java.awt.event.WindowEvent event)
           
 void windowClosing(java.awt.event.WindowEvent event)
           
 void windowDeactivated(java.awt.event.WindowEvent event)
           
 void windowDeiconified(java.awt.event.WindowEvent event)
           
 void windowIconified(java.awt.event.WindowEvent event)
           
 void windowOpened(java.awt.event.WindowEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUpFramelessMenuBar

public void setUpFramelessMenuBar()

getChangeBlurSettingsAction

public javax.swing.Action getChangeBlurSettingsAction()

instance

public static JomicApplication instance()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

open

public void open(JomicFrame jomicFrameToOpenIn,
                 java.io.File comicToOpen)

Open in window jomicFrameToOpenIn the comic comicToOpen.

If jomicFrameToOpenIn is null, open a new window first. If comicToOpen is null, let the user choose one.


openInNewWindow

public void openInNewWindow()
Open dialog to select comic, then open it in new window.


openInNewWindow

public void openInNewWindow(java.io.File comicFile)
Open comic in new window.


performToggleFullScreen

public void performToggleFullScreen()
Change view of current comic to full screen.


quit

public void quit()
Cleanup, write settings and exit application.

See Also:
JomicStartup.exit(int)

windowActivated

public void windowActivated(java.awt.event.WindowEvent event)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent event)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent event)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent event)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent event)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent event)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent event)
Specified by:
windowOpened in interface java.awt.event.WindowListener