Class GUI

java.lang.Object
  extended by GUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class GUI
extends java.lang.Object
implements java.awt.event.ActionListener

Class for building the GUI for playing video files and viewing r-frames after the segmentation process

Version:
1.0 01.06.06
Author:
Vegard Kosmo
See Also:
Videosegmenter, Button

Field Summary
 javax.swing.JDesktopPane desktopPane
           
 java.awt.GridLayout gridLayout
           
 javax.swing.JPanel imagePanel
           
 javax.swing.JFrame shotWindow
           
 
Constructor Summary
GUI(Videosegmenter main)
          Standard constructor to build the GUI
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 void addImage(ResizedImageObject resizedImageObject)
          Method that adds new shot images to the shot window
 javax.swing.JFrame shotWindow()
          Method to build the shot viewer window
 javax.swing.JMenuBar videoMenu()
          Method to build the video window menu
 javax.swing.JFrame videoWindow(java.awt.Dimension size)
          Method to build the video window
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shotWindow

public javax.swing.JFrame shotWindow

desktopPane

public javax.swing.JDesktopPane desktopPane

imagePanel

public javax.swing.JPanel imagePanel

gridLayout

public java.awt.GridLayout gridLayout
Constructor Detail

GUI

public GUI(Videosegmenter main)
Standard constructor to build the GUI

Parameters:
main - Main class reference
Method Detail

videoWindow

public javax.swing.JFrame videoWindow(java.awt.Dimension size)
Method to build the video window

Parameters:
size - The size of the video window
Returns:
videoWindow Returns the generated video window

shotWindow

public javax.swing.JFrame shotWindow()
Method to build the shot viewer window

Returns:
shotWindow Returns the generated shot window

videoMenu

public javax.swing.JMenuBar videoMenu()
Method to build the video window menu

Returns:
videoMenu Returns the video menu

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addImage

public void addImage(ResizedImageObject resizedImageObject)
Method that adds new shot images to the shot window

Parameters:
resizedImageObject - The resized image to be viewed in the shot window