net.sf.jomic.ui
Class FullScreenViewer

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

public final class FullScreenViewer
extends Object
implements ActionListener, FullScreenCancelabel, KeyListener, PropertyChangeListener, MouseListener

Comic viewer in full screen mode connected to a JomicFrame.

Author:
Thomas Aglassinger
See Also:
JomicFrame

Method Summary
 void actionPerformed(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(KeyEvent keyEvent)
          Check if keyEvent can be processed and if so, convert it to an ActionEvent and handle it.
 void keyReleased(KeyEvent keyEvent)
           
 void keyTyped(KeyEvent keyEvent)
           
 void mouseClicked(MouseEvent mouseEvent)
           
 void mouseEntered(MouseEvent mouseEvent)
           
 void mouseExited(MouseEvent mouseEvent)
           
 void mousePressed(MouseEvent mouseEvent)
           
 void mouseReleased(MouseEvent mouseEvent)
           
 void performCancel()
           
 void performCancelAndWait()
           
 void propertyChange(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(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 ActionListener

dispose

public void dispose()

propertyChange

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

performCancel

public void performCancel()

performCancelAndWait

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

keyTyped

public void keyTyped(KeyEvent keyEvent)
Specified by:
keyTyped in interface KeyListener

keyPressed

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

Specified by:
keyPressed in interface KeyListener
See Also:
actionPerformed(ActionEvent)

keyReleased

public void keyReleased(KeyEvent keyEvent)
Specified by:
keyReleased in interface KeyListener

mouseClicked

public void mouseClicked(MouseEvent mouseEvent)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent mouseEvent)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent mouseEvent)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent mouseEvent)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent mouseEvent)
Specified by:
mouseReleased in interface MouseListener