Class 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.KeyListener
    An action to display in full-screen mode.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • 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
      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.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • FullScreenAction

        public FullScreenAction​(java.lang.String description)
        Construct a full screen action.
        Parameters:
        description - A string that describes the action. Spaces are permitted, each word is usually capitalized.
    • 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:
        actionPerformed in interface java.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:
        keyPressed in interface java.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:
        keyReleased in interface java.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:
        keyTyped in interface java.awt.event.KeyListener
        Parameters:
        e - The key event, ignored by this method.