Class FFTInterface

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--SingleInputImageInterface
                                      |
                                      +--FFTInterface

public class FFTInterface
extends SingleInputImageInterface

Interface for the FFT/Inverse FFT/Various Intermediate Operators.

Author:
Simon Horne.
See Also:
Serialized Form

Inner Class Summary
 class FFTInterface.horizontalAxis
           
 class FFTInterface.verticalAxis
           
 
Inner classes inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Field Summary
 javax.swing.JLabel fourierCurrentDims
          For displaying the fourier image dimensions.
 javax.swing.ImageIcon fourierCurrentIcon
          For displaying the filtered fourier image.
 javax.swing.JLabel fourierCurrentLabel
          For displaying the fourier image used in the filters.
 javax.swing.ImageIcon[] fourierIcon
          For displaying the 7 fourier transform images.
 java.awt.Image fourierImageCurrent
          The fourier image for displaying the effects of filters etc.
 javax.swing.JLabel[] fourierLabel
          For displaying the 7 fourier transform images.
 javax.swing.JTabbedPane fourierPane
          For displaying the 7 fourier images in a small space.
 javax.swing.JPanel fourierPanel
           
 javax.swing.JPanel leftPanel
          The panel containing the various operator controls.
 
Fields inherited from class SingleInputImageInterface
container, imageName, imageNameField, imagesPanel, imageTools, inputArray, inputDims, inputHeight, inputIcon, inputImage, inputLabel, inputPanel, inputWidth, load, loadPanel, operatorPanel, outputArray, outputDims, outputHeight, outputIcon, outputImage, outputLabel, outputPanel, outputWidth, startstop, startstopPanel, status, time_msec, tracker
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
FFTInterface()
           
 
Method Summary
 int[][] convertTo2D(int[] input, int w, int h)
          Converts an int array representing an image into a 2D int array.
 void createFourierPanel()
          Creates the images panel for inclusion in the GUI.
 javax.swing.JPanel createStartPanel()
          Creates the start panel for inclusion in the GUI.
 java.lang.String getAppletInfo()
          Used by the browser to obtain details of the applet.
 void init()
          JApplet init method to start the applet and initialise it.
 void loadImage()
          Loads the current image and displays it on the screen.
 void setContainer()
          Sets up the top-level container for the GUI.
 void setLook()
          Sets the look and feel of the GUI.
 void setOperation()
          Sets the operations linked to the various GUI operator buttons.
 void updateFourierImages()
          Updates the fourier images on the screen.
 
Methods inherited from class SingleInputImageInterface
createImagesPanel, createLoadPanel, initialImage, initialiseImages, initialiseInput, updateInput, updateOutput
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

leftPanel

public javax.swing.JPanel leftPanel
The panel containing the various operator controls.

fourierImageCurrent

public java.awt.Image fourierImageCurrent
The fourier image for displaying the effects of filters etc.

fourierLabel

public javax.swing.JLabel[] fourierLabel
For displaying the 7 fourier transform images.

fourierCurrentLabel

public javax.swing.JLabel fourierCurrentLabel
For displaying the fourier image used in the filters.

fourierIcon

public javax.swing.ImageIcon[] fourierIcon
For displaying the 7 fourier transform images.

fourierCurrentIcon

public javax.swing.ImageIcon fourierCurrentIcon
For displaying the filtered fourier image.

fourierPane

public javax.swing.JTabbedPane fourierPane
For displaying the 7 fourier images in a small space.

fourierPanel

public javax.swing.JPanel fourierPanel

fourierCurrentDims

public javax.swing.JLabel fourierCurrentDims
For displaying the fourier image dimensions.
Constructor Detail

FFTInterface

public FFTInterface()
Method Detail

updateFourierImages

public void updateFourierImages()
Updates the fourier images on the screen.

convertTo2D

public int[][] convertTo2D(int[] input,
                           int w,
                           int h)
Converts an int array representing an image into a 2D int array.
Parameters:
input - The int array representing the image.
w - The width of the image.
h - The height of the image.
Returns:
A 2D array [w][h] representing the image.

loadImage

public void loadImage()
Loads the current image and displays it on the screen.

createStartPanel

public javax.swing.JPanel createStartPanel()
Creates the start panel for inclusion in the GUI.

createFourierPanel

public void createFourierPanel()
Creates the images panel for inclusion in the GUI.

setLook

public void setLook()
Sets the look and feel of the GUI.
Throws:
java.lang.Exception - When things don't go right.
Overrides:
setLook in class SingleInputImageInterface

setContainer

public void setContainer()
Sets up the top-level container for the GUI.
Overrides:
setContainer in class SingleInputImageInterface

setOperation

public void setOperation()
Sets the operations linked to the various GUI operator buttons.

init

public void init()
JApplet init method to start the applet and initialise it.
Overrides:
init in class SingleInputImageInterface

getAppletInfo

public java.lang.String getAppletInfo()
Used by the browser to obtain details of the applet.
Returns:
Brief description of the applet.
Overrides:
getAppletInfo in class SingleInputImageInterface