Class MotionDetection.DisplaySizeAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
    Enclosing class:
    MotionDetection

    private class MotionDetection.DisplaySizeAction
    extends javax.swing.AbstractAction
    Called when one of the Display Width radio buttons is clicked. Sets the dimensions of the image displayed in the program window to the selected size.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Serial version UID
      • 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
      DisplaySizeAction​(java.lang.String label)
      Creates a new DisplaySizeAction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent ae)
      Called when the JRadioMenuItem is clicked.
      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version UID
        See Also:
        Constant Field Values
    • Constructor Detail

      • DisplaySizeAction

        public DisplaySizeAction​(java.lang.String label)
        Creates a new DisplaySizeAction
        Parameters:
        label - the width label (eg. 800 or 1024)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent ae)
        Called when the JRadioMenuItem is clicked. Changes the program display dimensions setting the height from the width and aspect ratio of the capture image.
        Parameters:
        ae - the ActionEvent passed in from the JRadioMenuItem