Package ptolemy.vergil.basic
Class ExtendedGraphFrame.FullScreenAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- ptolemy.vergil.basic.ExtendedGraphFrame.FullScreenAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.KeyListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Enclosing class:
- ExtendedGraphFrame
public class ExtendedGraphFrame.FullScreenAction extends javax.swing.AbstractAction implements java.awt.event.KeyListenerAn action to display in full-screen mode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FullScreenAction(java.lang.String description)Construct a full screen action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)If we are in full-screen mode, then revert; otherwise, go to full-screen mode.voidkeyPressed(java.awt.event.KeyEvent e)React to a key press by removing full-screen mode.voidkeyReleased(java.awt.event.KeyEvent e)React to a key press by removing full-screen mode.voidkeyTyped(java.awt.event.KeyEvent e)React to a key press by removing full-screen mode.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
If we are in full-screen mode, then revert; otherwise, go to full-screen mode.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
e- The action event, ignored by this method.
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.- Specified by:
keyPressedin interfacejava.awt.event.KeyListener- Parameters:
e- The key event, ignored by this method.
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener- Parameters:
e- The key event, ignored by this method.
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.- Specified by:
keyTypedin interfacejava.awt.event.KeyListener- Parameters:
e- The key event, ignored by this method.
-
-