net.sf.jomic.ui
Class FullScreenViewer

java.lang.Object
  extended by net.sf.jomic.ui.FullScreenViewer
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.beans.PropertyChangeListener, java.util.EventListener, FullScreenCancelabel

public final class FullScreenViewer
extends java.lang.Object
implements java.awt.event.ActionListener, FullScreenCancelabel, java.awt.event.KeyListener, java.beans.PropertyChangeListener, java.awt.event.MouseListener

Comic viewer in full screen mode connected to a JomicFrame.

Author:
Thomas Aglassinger
See Also:
JomicFrame

Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Delegate all events to controller, but also process some yourself (for example navigational commands).
 void dispose()
           
static FullScreenViewer instance()
           
 boolean isVisible()
           
 void keyPressed(java.awt.event.KeyEvent keyEvent)
          Check if keyEvent can be processed and if so, convert it to an ActionEvent and handle it.
 void keyReleased(java.awt.event.KeyEvent keyEvent)
           
 void keyTyped(java.awt.event.KeyEvent keyEvent)
           
 void mouseClicked(java.awt.event.MouseEvent mouseEvent)
           
 void mouseEntered(java.awt.event.MouseEvent mouseEvent)
           
 void mouseExited(java.awt.event.MouseEvent mouseEvent)
           
 void mousePressed(java.awt.event.MouseEvent mouseEvent)
           
 void mouseReleased(java.awt.event.MouseEvent mouseEvent)
           
 void performCancel()
           
 void performCancelAndWait()
           
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 void setController(JomicFrame newController)
           
 void setVisible(boolean newVisible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static FullScreenViewer instance()

setController

public void setController(JomicFrame newController)

setVisible

public void setVisible(boolean newVisible)

isVisible

public boolean isVisible()
Specified by:
isVisible in interface FullScreenCancelabel

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Delegate all events to controller, but also process some yourself (for example navigational commands). Unless the command is in COMMANDS_REMAINING_IN_FULL_SCREEN, revert back to window mode.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

dispose

public void dispose()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

performCancel

public void performCancel()

performCancelAndWait

public void performCancelAndWait()
                          throws java.lang.InterruptedException,
                                 java.lang.reflect.InvocationTargetException
Specified by:
performCancelAndWait in interface FullScreenCancelabel
Throws:
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException

keyTyped

public void keyTyped(java.awt.event.KeyEvent keyEvent)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent keyEvent)
Check if keyEvent can be processed and if so, convert it to an ActionEvent and handle it.

Specified by:
keyPressed in interface java.awt.event.KeyListener
See Also:
actionPerformed(ActionEvent)

keyReleased

public void keyReleased(java.awt.event.KeyEvent keyEvent)
Specified by:
keyReleased in interface java.awt.event.KeyListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent mouseEvent)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseReleased in interface java.awt.event.MouseListener