public class ExtendedGraphFrame.FullScreenAction extends javax.swing.AbstractAction implements java.awt.event.KeyListener
| Constructor and Description |
|---|
FullScreenAction(java.lang.String description)
Construct a full screen action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
If we are in full-screen mode, then revert; otherwise, go
to full-screen mode.
|
void |
keyPressed(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.
|
void |
keyReleased(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.
|
void |
keyTyped(java.awt.event.KeyEvent e)
React to a key press by removing full-screen mode.
|
public FullScreenAction(java.lang.String description)
description - A string that describes the action. Spaces are
permitted, each word is usually capitalized.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - The action event, ignored by this method.public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - The key event, ignored by this method.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenere - The key event, ignored by this method.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenere - The key event, ignored by this method.