gui

Class Gui


public class Gui
extends JFrame

Graphical User Interface (GUI)

This class provides the GUI while the presentations of the single steps of an algorithm. It also provides methods for a graphical presentation of the steps (like marking regions in the image, drawing dots, ...).

Copyright: Copyright (c) 2002

Field Summary

private JApplet
applet
private ButtonPanel
buttonPanel
private AlgorithmControl
controller
private Container
cp
private ExplenationPane
explenation
private GridDisplay
grDisplay
private Grid
grid
private ImageHolder
images
private JPanel
leftPanel
private MotionEstimationMenuBar
menu
private JButton
nextButton
private JButton
prevButton
private JPanel
rightPanel
private ThresholdSelector
selector
private ImageViewer
viewer1

Constructor Summary

Gui()

Method Summary

void
correctExplentionPane()
private JEditorPane
createEditorPane(URL displayedText)
void
displayAlgorithmOptions(AlgorithmOptions panel)
void
displayGrid()
void
displayThresholdSelection()
This class returns the Options object which inherits all settings of the program.
void
enableGrid(int searchRange)
void
exit()
MotionEstimationAlgorithm
getAlgorithm()
Returns the actual algorithm of the gui.
AlgorithmControl
getAlgorithmControl()
ButtonPanel
getButtonPanel()
Returns the ButtonPanel-objext.
Grid
getGrid()
ImageHolder
getImageHolder()
ImageViewer
getImageViewer()
Returns the ImageViewer-object.
MotionEstimationMenuBar
getMenu()
int
getThresHoldValue()
void
removeAlgorithmOptions()
void
reset()
use this method to reset the PROGRAM to it's initial values
void
setAlgorithm(MotionEstimationAlgorithm algorithm)
Assign an Algorithm-object to the GUI.This will remove a possible existing Algorithm-object.
void
setAlgorithmController(AlgorithmControl c)
void
setExplenation(URL explenationFile)
Set a new HTML-File for the text-aera.
void
setExplenationTitle(String title)

Field Details

applet

private JApplet applet

buttonPanel

private ButtonPanel buttonPanel

controller

private AlgorithmControl controller

cp

private Container cp

explenation

private ExplenationPane explenation

grDisplay

private GridDisplay grDisplay

grid

private Grid grid

images

private ImageHolder images

leftPanel

private JPanel leftPanel

menu

private MotionEstimationMenuBar menu

nextButton

private JButton nextButton

prevButton

private JButton prevButton

rightPanel

private JPanel rightPanel

selector

private ThresholdSelector selector

viewer1

private ImageViewer viewer1

Constructor Details

Gui

public Gui()

Method Details

correctExplentionPane

public void correctExplentionPane()

createEditorPane

private JEditorPane createEditorPane(URL displayedText)

displayAlgorithmOptions

public void displayAlgorithmOptions(AlgorithmOptions panel)

displayGrid

public void displayGrid()

displayThresholdSelection

public void displayThresholdSelection()
This class returns the Options object which inherits all settings of the program.

enableGrid

public void enableGrid(int searchRange)

exit

public void exit()

getAlgorithm

public MotionEstimationAlgorithm getAlgorithm()
Returns the actual algorithm of the gui. Returns NULL if not set.
Returns:
MotionEstimationAlgorithm The actual algorithm

getAlgorithmControl

public AlgorithmControl getAlgorithmControl()

getButtonPanel

public ButtonPanel getButtonPanel()
Returns the ButtonPanel-objext. Use this objext to access the buttons.
Returns:
ButtonPanel the ButtonPanel object use by the GUI

getGrid

public Grid getGrid()

getImageHolder

public ImageHolder getImageHolder()

getImageViewer

public ImageViewer getImageViewer()
Returns the ImageViewer-object. Use this object to access all functions applying the image-area in the GUI (upper left)
Returns:
ImageViewer the ImageViewer

getMenu

public MotionEstimationMenuBar getMenu()

getThresHoldValue

public int getThresHoldValue()

removeAlgorithmOptions

public void removeAlgorithmOptions()

reset

public void reset()
use this method to reset the PROGRAM to it's initial values

setAlgorithm

public void setAlgorithm(MotionEstimationAlgorithm algorithm)
Assign an Algorithm-object to the GUI.This will remove a possible existing Algorithm-object. The GUI will be reset an the new algorithm starts with step01
Parameters:

setAlgorithmController

public void setAlgorithmController(AlgorithmControl c)

setExplenation

public void setExplenation(URL explenationFile)
Set a new HTML-File for the text-aera.
Parameters:

setExplenationTitle

public void setExplenationTitle(String title)